Skip to content

Commit

Permalink
fix: key error
Browse files Browse the repository at this point in the history
  • Loading branch information
coderz-w committed Sep 29, 2024
1 parent ff2c75e commit 22cab09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/home/card-hover-effect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function HoverEffect({
<div className={cn('grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 py-10', className)}>
{items.map((item, idx) => (
<Link
key={item?.link}
key={item?.link + idx}
className="relative block w-full h-full p-2 group"
href={item?.link}
onMouseEnter={() => setHoveredIndex(idx)}
Expand Down
4 changes: 2 additions & 2 deletions src/components/home/footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ const renderLink = (products: LinkProps[]) =>
));

const renderIcon = (icons: Icon[]) =>
icons.map((icon) => (
icons.map((icon, idx) => (
<a
href={icon.link}
key={icon.link}
key={icon.link + idx}
className="p-2 rounded-md text-white border border-white/30 hover:bg-white/10 transition-colors"
>
{icon.icon}
Expand Down

0 comments on commit 22cab09

Please sign in to comment.