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