diff --git a/src/client/components/Sidebar.tsx b/src/client/components/Sidebar.tsx index 8383828..9927f1f 100644 --- a/src/client/components/Sidebar.tsx +++ b/src/client/components/Sidebar.tsx @@ -3,42 +3,12 @@ import { ChevronsUpDown, X } from "lucide-react"; import { getProjectNavItems } from "@/client/navigation/items"; interface SidebarProps { - currentPath: string; - projectId: string | null; + projectId: string; onNavigate?: () => void; onClose?: () => void; } -export function Sidebar({ - currentPath, - projectId, - onNavigate, - onClose, -}: SidebarProps) { - // If we don't have a projectId yet (e.g., root redirect hasn't fired), - // don't render nav links since we can't build the URLs. - if (!projectId) { - return ( -
-
- OpenSEO - {onClose && ( - - )} -
-
- -
-
- ); - } - +export function Sidebar({ projectId, onNavigate, onClose }: SidebarProps) { const projectNavItems = getProjectNavItems(projectId); return ( @@ -73,25 +43,26 @@ export function Sidebar({ {/* Navigation */}