fix(sidebarnavigation): allow null pags

This commit is contained in:
AAGaming
2022-10-08 01:50:25 -04:00
parent f8ddf210f0
commit d6b00b0733

View File

@@ -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;