-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added latest products and products ending soon on home page
- Loading branch information
Showing
8 changed files
with
94 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React, { useState, useEffect, useMemo } from 'react' | ||
import ProductCard from '../../Components/ProductCard/ProductCard' | ||
import generateId from '../../utils/RandomIdGen' | ||
|
||
const LatestProductsSlider = ({ products }) => { | ||
return ( | ||
<div className="d-flex flex-wrap"> | ||
{products.map((product) => ( | ||
<div className="col-lg-3 col-md-6 col-sm-12" key={generateId()}> | ||
<ProductCard product={product} index={generateId()} /> | ||
</div> | ||
))} | ||
</div> | ||
) | ||
} | ||
|
||
export default LatestProductsSlider |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React, { useState, useEffect, useMemo } from 'react' | ||
import ProductCard from '../../Components/ProductCard/ProductCard' | ||
import generateId from '../../utils/RandomIdGen' | ||
|
||
const ProductsEndingSoonSlider = ({ products }) => { | ||
return ( | ||
<div className="d-flex flex-wrap"> | ||
{products.map((product) => ( | ||
<div className="col-lg-3 col-md-6 col-sm-12" key={generateId()}> | ||
<ProductCard product={product} index={generateId()} /> | ||
</div> | ||
))} | ||
</div> | ||
) | ||
} | ||
|
||
export default ProductsEndingSoonSlider |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.