Skip to content

Commit

Permalink
refactor: put link inside an li on ul
Browse files Browse the repository at this point in the history
  • Loading branch information
jandiralceu committed Sep 15, 2024
1 parent 4e43e5b commit 81bf7d0
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/components/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,20 @@ export default function Navbar({
: location.pathname === path;

return (
<Link
key={path}
to={path}
className={[
"pb-2 ",
isCurrentRoute
? `font-bold border-b-2 ${activeBorderClassName}`
: `border-b-0 hover:border-b-2 transition-all duration-300 ease-in ${hoverBorderClassName}`,
].join(" ")}
title={name}
>
{name}
</Link>
<li key={path}>
<Link
to={path}
className={[
"pb-2 ",
isCurrentRoute
? `font-bold border-b-2 ${activeBorderClassName}`
: `border-b-0 hover:border-b-2 transition-all duration-300 ease-in ${hoverBorderClassName}`,
].join(" ")}
title={name}
>
{name}
</Link>
</li>
);
})}
{children}
Expand Down

0 comments on commit 81bf7d0

Please sign in to comment.