diff --git a/components/SideNavigation.tsx b/components/SideNavigation.tsx index 7aa43aadf0668..e17549fc77c8d 100644 --- a/components/SideNavigation.tsx +++ b/components/SideNavigation.tsx @@ -21,15 +21,25 @@ const SideNavigation: FC = ({ const sideNavigationItems = getSideNavigation(navigationKey, context); - const getLinkClassName = (href: string) => - classNames({ active: isCurrentLocaleRoute(href) }); + const getLinkClasses = (href: string, level: number) => + classNames({ active: isCurrentLocaleRoute(href), level }); return (