From 25c2f7ceeeee78d5753ad90d4b57a29e381d83aa Mon Sep 17 00:00:00 2001 From: Thomas Draier Date: Thu, 2 Jan 2025 15:40:23 +0100 Subject: [PATCH] Handle logout has an onClick cta --- front/components/UserMenu.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/front/components/UserMenu.tsx b/front/components/UserMenu.tsx index dd52c380acb2..ffa00a5b7632 100644 --- a/front/components/UserMenu.tsx +++ b/front/components/UserMenu.tsx @@ -91,7 +91,6 @@ export function UserMenu({ label="Meeting transcripts" icon={BookOpenIcon} href={`/w/${owner.sId}/assistant/labs/transcripts`} - prefetch={false} /> )} {featureFlags.includes("labs_trackers") && ( @@ -99,7 +98,6 @@ export function UserMenu({ label="Trackers" icon={EyeIcon} href={`/w/${owner.sId}/assistant/labs/trackers`} - prefetch={false} /> )} @@ -149,10 +147,11 @@ export function UserMenu({ { + void router.push("/api/auth/logout"); + }} icon={LogoutIcon} label="Sign out" - prefetch={false} />