From 472c2a7ddd9237d2e5ad043677e30c34e9d621ed Mon Sep 17 00:00:00 2001 From: Jake Wheeler Date: Wed, 20 Nov 2024 12:31:41 -0500 Subject: [PATCH] selected nav item improvements (#53) --- src/app/components/NavigationLink/NavigationLink.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/components/NavigationLink/NavigationLink.tsx b/src/app/components/NavigationLink/NavigationLink.tsx index 059ad34..6f693a0 100644 --- a/src/app/components/NavigationLink/NavigationLink.tsx +++ b/src/app/components/NavigationLink/NavigationLink.tsx @@ -12,9 +12,15 @@ export function NavigationLink({ onClick, }: NavigationLinkProps) { const pathname = usePathname(); - const isActive = pathname === href; + const isActive = pathname.includes(href.toString()); + return ( - +