Merge branch 'amy-navbar-highlight-fix' of https://git.csclub.uwaterloo.ca/www/www-new into amy-navbar-highlight-fix
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Amy 2021-08-28 18:22:09 -04:00
commit 723d799d87
1 changed files with 3 additions and 0 deletions

View File

@ -201,9 +201,11 @@ function reducer(state: MobileState, action: MobileAction): MobileState {
interface NavItemProps {
name: string;
route: string;
hasSubsections?: boolean;
submenu?: {
name: string;
route: string;
hasSubsections?: boolean;
}[];
mainRouteActive: boolean;
onToggle(route: string): void;
@ -274,6 +276,7 @@ function NavItem(props: NavItemProps) {
<NavItem
name={item.name}
route={item.route}
hasSubsections={item.hasSubsections}
mainRouteActive={props.mainRouteActive}
onClose={() => props.onClose()}
onToggle={(route) => props.onToggle(route)}