diff --git a/app/epd/components/epd-sidebar.tsx b/app/epd/components/epd-sidebar.tsx index fd90a99..9180309 100644 --- a/app/epd/components/epd-sidebar.tsx +++ b/app/epd/components/epd-sidebar.tsx @@ -238,33 +238,31 @@ export function EPDSidebar({ className = "", userEmail, userName }: EPDSidebarPr {/* Logout Button */}
-
- -
+ )} +
diff --git a/components/ui/modern-side-bar.tsx b/components/ui/modern-side-bar.tsx index 0e89464..aa38c90 100644 --- a/components/ui/modern-side-bar.tsx +++ b/components/ui/modern-side-bar.tsx @@ -63,6 +63,10 @@ export function Sidebar({ className = "" }: SidebarProps) { const toggleCollapse = () => setIsCollapsed(!isCollapsed); const handleItemClick = (itemId: string) => { + if (itemId === 'logout') { + window.location.href = '/auth/logout'; + return; + } setActiveItem(itemId); if (window.innerWidth < 768) { setIsOpen(false);