Skip to content

Commit d93e8bd

Browse files
committed
fix: Remove nested link and button
1 parent a99065c commit d93e8bd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/app/components/IconLink.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ interface IconLinkProps {
88
}
99

1010
const IconLink: FC<IconLinkProps> = ({ icon, text, href }) => (
11-
<Link href={href}>
12-
<Button
13-
aria-label={text}
14-
className="flex items-center focus:text-blue-500 focus:underline hover:text-blue-500 hover:underline bg-white"
15-
startContent={<div className="w-5">{icon}</div>}
16-
>
17-
{text}
18-
</Button>
19-
</Link>
11+
<Button
12+
as={Link}
13+
href={href}
14+
aria-label={text}
15+
className="flex items-center focus:text-blue-500 focus:underline hover:text-blue-500 hover:underline bg-white"
16+
startContent={<div className="w-5">{icon}</div>}
17+
>
18+
{text}
19+
</Button>
2020
);
2121

2222
export default IconLink;

0 commit comments

Comments
 (0)