fix: Add card unique key
This commit is contained in:
@@ -11,13 +11,15 @@ const ProductCards = ({ products } : ProductCardProps) => {
|
|||||||
<>
|
<>
|
||||||
{ products.map((product) => {
|
{ products.map((product) => {
|
||||||
return (
|
return (
|
||||||
<Card
|
<div key={product.id}>
|
||||||
image={product.image}
|
<Card
|
||||||
name={product.name}
|
image={product.image}
|
||||||
price={product.price}
|
name={product.name}
|
||||||
description={ product.description}
|
price={product.price}
|
||||||
cardId={product.id}
|
description={ product.description}
|
||||||
/>
|
cardId={product.id}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}) }
|
}) }
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user