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