nav css fix
This commit is contained in:
parent
4ff652cbbd
commit
c42e32d644
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ export default function NavItem({
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
href: string;
|
href: string;
|
||||||
}>) {
|
}>) {
|
||||||
const highlighted = usePathname() === href;
|
const highlighted = usePathname() == href;
|
||||||
return <Link href={href} className={`text-lg mx-4 flex font-semibold ${highlighted ? 'underline underline-offset-8':""} hover:scale-110 active:rotate-4`}>
|
return <Link href={href} className={`text-lg mx-4 flex font-semibold ${highlighted ? 'underline underline-offset-8':""} hover:scale-110 active:rotate-4`}>
|
||||||
{children}
|
{children}
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue