From 99ae555a2bd0c5ee4db658de9c1f787fc585194b Mon Sep 17 00:00:00 2001 From: ankushKun Date: Wed, 3 Jul 2024 14:31:49 +0530 Subject: [PATCH] deploy wip --- next_app/src/components/layout.tsx | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/next_app/src/components/layout.tsx b/next_app/src/components/layout.tsx index 963d7d3..0ab7a71 100644 --- a/next_app/src/components/layout.tsx +++ b/next_app/src/components/layout.tsx @@ -1,12 +1,7 @@ -import { - ResizableHandle, - ResizablePanel, - ResizablePanelGroup, -} from "@/components/ui/resizable" +import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "@/components/ui/resizable" import Sidebar from "./sidebar"; import SidebarDrawer from "./drawer"; -import { useEffect, useRef } from "react"; -import { useGlobalState } from "@/hooks"; +import { useRef } from "react"; import { ImperativePanelHandle } from "react-resizable-panels"; import View from "./views"; import Statusbar from "./statusbar"; @@ -14,24 +9,10 @@ import Menubar from "./menubar"; export default function Layout() { - const globalState = useGlobalState(); const sidebarDrawerRef = useRef(); - // useEffect(() => { - // if (!sidebarDrawerRef) return; - // if (!globalState.activeSidebarItem) sidebarDrawerRef.current.collapse(); - // else { - // switch (globalState.activeSidebarItem) { - // case "SETTINGS": - // return sidebarDrawerRef.current.collapse(); - // default: - // return sidebarDrawerRef.current.expand(); - // } - // } - // }, [globalState.activeSidebarItem, sidebarDrawerRef]) - return
- +
@@ -44,6 +25,6 @@ export default function Layout() {
- +
; } \ No newline at end of file