From d6b00b07337f7a9d38813eeec7c0a848d5c15f17 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 8 Oct 2022 01:50:25 -0400 Subject: [PATCH] fix(sidebarnavigation): allow null pags --- src/deck-components/SidebarNavigation.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;