diff --git a/apps/web/src/components/layout/main-layout.tsx b/apps/web/src/components/layout/main-layout.tsx index 5179f45..c8e87fc 100644 --- a/apps/web/src/components/layout/main-layout.tsx +++ b/apps/web/src/components/layout/main-layout.tsx @@ -19,13 +19,7 @@ export function MainLayout({ children }: Props) { {/* Main Content */} -
{ - if (isSidebarOpen) { - setIsSidebarOpen(false); - } - }} - > +
{/* Header Mobile */}
diff --git a/apps/web/src/components/layout/sidebar.tsx b/apps/web/src/components/layout/sidebar.tsx index 0505098..f1ecd7f 100644 --- a/apps/web/src/components/layout/sidebar.tsx +++ b/apps/web/src/components/layout/sidebar.tsx @@ -3,14 +3,14 @@ import { Link, useLocation } from "react-router-dom"; import { Leaf, LogOut, - Menu, - ChevronLeft, + ChevronsLeft, LayoutDashboard, Scan, Activity, BookOpen, UserCheck, ChartBar, + ChevronsRight, } from "lucide-react"; import { MobileNav } from "./mobile-nav"; import { useAuthStore } from "@/store/auth-store"; @@ -81,6 +81,7 @@ export function Sidebar() {
+ {/* Toggle Button */}
@@ -103,7 +104,6 @@ export function Sidebar() { className={`flex-1 overflow-y-auto py-6 flex flex-col gap-3 ${isSidebarOpen ? "px-5" : "px-0 items-center"}`} > {filteredNavItems.map((item) => { - // Skip expert-only items for non-expert users if (item.expertOnly && !isExpert) { return null; } @@ -116,7 +116,6 @@ export function Sidebar() { key={item.path} to={item.path} title={item.label} - onClick={() => setIsSidebarOpen(!isSidebarOpen)} className={`flex items-center rounded-full font-medium transition-all ${ isSidebarOpen ? "px-4 py-3 gap-3 text-[16px] w-full" @@ -160,4 +159,4 @@ export function Sidebar() { /> ); -} +} \ No newline at end of file