From 6de5166373dc83214ea1dc364fde644f31a9b6bc Mon Sep 17 00:00:00 2001 From: colinislit Date: Wed, 19 Nov 2025 15:43:02 +0100 Subject: [PATCH] logout - sidebar --- app/epd/components/epd-sidebar.tsx | 50 ++++++++++++++---------------- components/ui/modern-side-bar.tsx | 4 +++ 2 files changed, 28 insertions(+), 26 deletions(-) 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);