Moved Sidebar to top of app
This prevents flicker and stops useless rerender of the component
This commit is contained in:
11
components/global/sidebar/SidebarProps.ts
Normal file
11
components/global/sidebar/SidebarProps.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export interface SidebarMenuItem {
|
||||
phIcon: Component
|
||||
tooltip: string
|
||||
clickHandler?: () => void
|
||||
to?: string
|
||||
}
|
||||
|
||||
export interface SidebarProps {
|
||||
menuItems: SidebarMenuItem[],
|
||||
isHome?: boolean
|
||||
}
|
||||
Reference in New Issue
Block a user