fix(SidebarNavigation): add more props (#29)

This commit is contained in:
Barend Du Toit
2022-10-01 19:33:02 -06:00
committed by GitHub
parent a064163b49
commit ed0be5e87e

View File

@@ -4,8 +4,14 @@ import { Module, findModuleChild } from '../webpack';
export interface SidebarNavigationPages {
title: string;
route: string;
content: ReactNode;
icon?: ReactNode;
visible?: boolean;
hideTitle?: boolean;
identifier?: string;
route?: string;
link?: string;
padding?: "none" | "compact";
}
export interface SidebarNavigationProps {
@@ -13,6 +19,8 @@ export interface SidebarNavigationProps {
pages: SidebarNavigationPages[];
showTitle?: boolean;
disableRouteReporting?: boolean;
page?: string;
onPageRequested?: (page: string) => void;
}
export const SidebarNavigation = findModuleChild((mod: Module) => {