Skip to content

Commit 2adcd0e

Browse files
🔑 fix: add unique key prop to Link in CrossPlatformSkeleton
Add a unique key prop to each Link component within CrossPlatformSkeleton to resolve the React warning about each child in a list needing a unique "key" prop. This change ensures that each Link component is uniquely identifiable by React, improving the efficiency of rendering and updating the component list.
1 parent e277287 commit 2adcd0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎apps/web/components/features-bento.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const CrossPlatformSkeleton = () => {
153153
>
154154
<div className="flex flex-row space-x-4">
155155
{platforms.map((platform, i) => (
156-
<Link href="/download">
156+
<Link href="/download" key={platform.name}>
157157
<motion.div
158158
key={"platform-" + i}
159159
variants={variants}

0 commit comments

Comments
 (0)