Skip to content

Commit

Permalink
deploy wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ankushKun committed Jul 3, 2024
1 parent 3b7e8f0 commit 99ae555
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions next_app/src/components/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,37 +1,18 @@
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";
import Menubar from "./menubar";


export default function Layout() {
const globalState = useGlobalState();
const sidebarDrawerRef = useRef<ImperativePanelHandle>();

// 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 <div className="flex flex-col h-screen">
<Menubar/>
<Menubar />
<div className="flex h-full">
<Sidebar drawerRef={sidebarDrawerRef} />
<ResizablePanelGroup direction="horizontal">
Expand All @@ -44,6 +25,6 @@ export default function Layout() {
</ResizablePanel>
</ResizablePanelGroup>
</div>
<Statusbar/>
<Statusbar />
</div>;
}

0 comments on commit 99ae555

Please sign in to comment.