From afd73e5cb318a4da7953c3ef823cd2cf41ee5dda Mon Sep 17 00:00:00 2001 From: Kirill Kurko Date: Fri, 8 Mar 2024 09:07:18 +0300 Subject: [PATCH] Fix NavBar active item highlighting --- src/components/NavBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NavBar.tsx b/src/components/NavBar.tsx index 0e0897a..6be30e3 100644 --- a/src/components/NavBar.tsx +++ b/src/components/NavBar.tsx @@ -64,7 +64,7 @@ const NavBar = () => { ) : null} {Object.entries(NAV_ITEMS).map(([path, { name }]) => { - const isActive = pathname === path; + const isActive = currentPathname === path; return ( );