We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e00d775 + 75abc12 commit 879f128Copy full SHA for 879f128
1 file changed
src/components/NavBar.tsx
@@ -97,7 +97,7 @@ const NavBar = ({
97
<Link
98
key={index}
99
to={link.path}
100
- className={cn({ active: location.pathname === link.path })}
+ className={cn({ active: location.pathname === link.path || (location.pathname === "/" && link.path === "/events/events") })}
101
onClick={() => {
102
if (location.pathname !== link.path) {
103
// Reset the current page to first page
0 commit comments