Skip to content

Commit

Permalink
Fix: (빌드 에러 해결) NavLinks 컴포넌트에 key prop 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkSohyunee committed Dec 9, 2024
1 parent a902c42 commit dc90c5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/admin/_components/NavLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export default function NavLinks({ links }: NavLinksProps) {
{links.map((link) => {
const isActive = pathname && pathname.startsWith(link.path);
return (
<Link href={link.path} className={isActive ? styles.variantLink.selected : styles.variantLink.default}>
<Link
key={link.path}
href={link.path}
className={isActive ? styles.variantLink.selected : styles.variantLink.default}
>
{link.label}
</Link>
);
Expand Down

0 comments on commit dc90c5e

Please sign in to comment.