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
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
commit
723d799d87
|
@ -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)}
|
||||
|
|
Loading…
Reference in New Issue