add drawer to side panel on mobile

This commit is contained in:
Guy Ben-Aharon
2024-08-26 17:55:08 +03:00
parent 0a189cfada
commit 009ff7f509
7 changed files with 224 additions and 15 deletions

View File

@@ -14,6 +14,10 @@ export interface LayoutContext {
selectedSidebarSection: SidebarSection;
selectSidebarSection: (section: SidebarSection) => void;
isSidePanelShowed: boolean;
hideSidePanel: () => void;
showSidePanel: () => void;
}
export const layoutContext = createContext<LayoutContext>({
@@ -27,4 +31,8 @@ export const layoutContext = createContext<LayoutContext>({
selectSidebarSection: emptyFn,
openTableFromSidebar: emptyFn,
closeAllTablesInSidebar: emptyFn,
isSidePanelShowed: false,
hideSidePanel: emptyFn,
showSidePanel: emptyFn,
});