diff --git a/apps/nextjs/src/components/layout/navigation-link.tsx b/apps/nextjs/src/components/layout/navigation-link.tsx index c65f9381c..6aec0a9f1 100644 --- a/apps/nextjs/src/components/layout/navigation-link.tsx +++ b/apps/nextjs/src/components/layout/navigation-link.tsx @@ -35,19 +35,24 @@ const NavLinkHref = (props: NavigationLinkHref) => { ); }; -const NavLinkWithItems = (props: NavigationLinkWithItems) => ( - - {props.items.map((item) => ( - - ))} - -); +const NavLinkWithItems = (props: NavigationLinkWithItems) => { + const pathname = usePathname(); + const isActive = props.items.some((item) => item.href === pathname); + return ( + + {props.items.map((item) => ( + + ))} + + ); +}; interface CommonNavigationLinkProps { label: string;