diff --git a/src/deck-components/SidebarNavigation.tsx b/src/deck-components/SidebarNavigation.tsx index 1e29df7..8ed84ac 100644 --- a/src/deck-components/SidebarNavigation.tsx +++ b/src/deck-components/SidebarNavigation.tsx @@ -2,7 +2,7 @@ import { ReactNode, VFC } from 'react'; import { Module, findModuleChild } from '../webpack'; -export interface SidebarNavigationPages { +export interface SidebarNavigationPage { title: string; content: ReactNode; icon?: ReactNode; @@ -16,7 +16,7 @@ export interface SidebarNavigationPages { export interface SidebarNavigationProps { title?: string; - pages: SidebarNavigationPages[]; + pages: (SidebarNavigationPage | null)[]; showTitle?: boolean; disableRouteReporting?: boolean; page?: string;