Fix settings layout: replace deleted components with VIBNSidebar
Made-with: Cursor
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { WorkspaceLeftRail } from "@/components/layout/workspace-left-rail";
|
import { VIBNSidebar } from "@/components/layout/vibn-sidebar";
|
||||||
import { RightPanel } from "@/components/layout/right-panel";
|
import { ReactNode } from "react";
|
||||||
import { ReactNode, useState } from "react";
|
import { useParams } from "next/navigation";
|
||||||
import { Toaster } from "sonner";
|
import { Toaster } from "sonner";
|
||||||
|
|
||||||
export default function SettingsLayout({
|
export default function SettingsLayout({
|
||||||
@@ -10,25 +10,18 @@ export default function SettingsLayout({
|
|||||||
}: {
|
}: {
|
||||||
children: ReactNode;
|
children: ReactNode;
|
||||||
}) {
|
}) {
|
||||||
const [activeSection, setActiveSection] = useState<string>("settings");
|
const params = useParams();
|
||||||
|
const workspace = params.workspace as string;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="flex h-screen w-full overflow-hidden bg-background">
|
<div style={{ display: "flex", height: "100vh", background: "#f6f4f0", overflow: "hidden" }}>
|
||||||
{/* Left Rail - Workspace Navigation */}
|
<VIBNSidebar workspace={workspace} />
|
||||||
<WorkspaceLeftRail activeSection={activeSection} onSectionChange={setActiveSection} />
|
<main style={{ flex: 1, overflow: "auto" }}>
|
||||||
|
|
||||||
{/* Main Content Area */}
|
|
||||||
<main className="flex-1 flex flex-col overflow-hidden">
|
|
||||||
{children}
|
{children}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
{/* Right Panel - AI Chat */}
|
|
||||||
<RightPanel />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Toaster position="top-center" />
|
<Toaster position="top-center" />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user