diff --git a/console-ui/src/components/Sidebar.tsx b/console-ui/src/components/Sidebar.tsx index 72c11aca..14e559b3 100644 --- a/console-ui/src/components/Sidebar.tsx +++ b/console-ui/src/components/Sidebar.tsx @@ -1,5 +1,6 @@ "use client"; +/* eslint-disable @next/next/no-html-link-for-pages */ import { useStore } from "@/lib/store"; import { useAuth } from "@/hooks/useAuth"; import { useTheme } from "@/components/providers/ThemeProvider"; @@ -19,7 +20,6 @@ import { Sun, Moon, } from "lucide-react"; -import Link from "next/link"; import { usePathname, useRouter } from "next/navigation"; import { CommunityLinks } from "@/components/community/CommunityLinks"; @@ -41,19 +41,22 @@ export function Sidebar() { if (!sidebarOpen) return null; const isChatActive = pathname === "/"; + const closeSidebarOnMobile = () => { + if (window.innerWidth < 640) setSidebarOpen(false); + }; return (