Skip to content

Commit 879f128

Browse files
committed
Merge branch 'fix-events-not-bold-on-page-load' of Arnei/opencast-admin-interface into main
Pull request #1117 Fixes #1110 Fix "Events" not bold on page load.
2 parents e00d775 + 75abc12 commit 879f128

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
@@ -97,7 +97,7 @@ const NavBar = ({
9797
<Link
9898
key={index}
9999
to={link.path}
100-
className={cn({ active: location.pathname === link.path })}
100+
className={cn({ active: location.pathname === link.path || (location.pathname === "/" && link.path === "/events/events") })}
101101
onClick={() => {
102102
if (location.pathname !== link.path) {
103103
// Reset the current page to first page

0 commit comments

Comments
 (0)