Skip to content

Commit d98af05

Browse files
author
Peter Bengtsson
authored
unbreak React unique key prop warning (#23279)
1 parent 37b311d commit d98af05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/homepage/ProductSelectionCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const ProductSelectionCard = ({ name, group }: ProductSelectionCardProps)
5353
}
5454

5555
return (
56-
<div className="d-flex flex-column col-12 col-sm-6 col-lg-4 pb-4" key={name}>
56+
<div className="d-flex flex-column col-12 col-sm-6 col-lg-4 pb-4">
5757
<div className="flex-auto ws-normal">
5858
<div className="d-flex flex-items-center">
5959
{icon(group)}

components/homepage/ProductSelections.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const ProductSelections = () => {
1111
<div className="">
1212
<div className="d-flex flex-wrap gutter gutter-xl-spacious">
1313
{productGroups.map((group) => {
14-
return <ProductSelectionCard name={group.name} group={group} />
14+
return <ProductSelectionCard key={group.name} name={group.name} group={group} />
1515
})}
1616
</div>
1717
</div>

0 commit comments

Comments
 (0)