From aca6728f8c678a0cf00aa92ad8076e13b7123a8b Mon Sep 17 00:00:00 2001 From: ashrafchowdury Date: Thu, 5 Dec 2024 19:28:20 +0600 Subject: [PATCH] fix(frontend): logout button --- agenta-web/src/components/Sidebar/Sidebar.tsx | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/agenta-web/src/components/Sidebar/Sidebar.tsx b/agenta-web/src/components/Sidebar/Sidebar.tsx index a90e43fef6..e3c0c403f2 100644 --- a/agenta-web/src/components/Sidebar/Sidebar.tsx +++ b/agenta-web/src/components/Sidebar/Sidebar.tsx @@ -381,21 +381,18 @@ const Sidebar: React.FC = () => { { key: "logout", label: ( -
{ - AlertPopup({ - title: "Logout", - message: - "Are you sure you want to logout?", - onOk: logout, - }) - }} - > +
Logout
), + onClick: () => { + AlertPopup({ + title: "Logout", + message: "Are you sure you want to logout?", + onOk: logout, + }) + }, }, ], selectedKeys: [selectedOrg.id],