Skip to content

Commit 06660ed

Browse files
Merge pull request #2 from Xendox/feature/random-product-images
fix: Add random product images to PLP page
2 parents dccce9f + 8547279 commit 06660ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/pages/PageProducts/components/Products.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ export default function Products() {
4343

4444
return (
4545
<Grid container spacing={4}>
46-
{products.map((product: Product) => (
46+
{products.map((product: Product, index: number) => (
4747
<Grid item key={product.id} xs={12} sm={6} md={4}>
4848
<Card className={classes.card}>
4949
<CardMedia
5050
className={classes.cardMedia}
51-
image="https://source.unsplash.com/random"
51+
image={`https://source.unsplash.com/random?sig=${index}`}
5252
title="Image title"
5353
/>
5454
<CardContent className={classes.cardContent}>

0 commit comments

Comments
 (0)