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