Skip to content

Commit 75abc12

Browse files
committed
Fix "Events" not bold on page load.
Makes the "Events" header on page load bold white again.
1 parent 2b7e281 commit 75abc12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/NavBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const NavBar = ({
9696
{return (hasAccess(link.accessRole, user) && (
9797
<Link
9898
to={link.path}
99-
className={cn({ active: location.pathname === link.path })}
99+
className={cn({ active: location.pathname === link.path || (location.pathname === "/" && link.path === "/events/events") })}
100100
onClick={() => {
101101
if (location.pathname !== link.path) {
102102
// Reset the current page to first page

0 commit comments

Comments
 (0)