Skip to content

Commit

Permalink
[fromt] Handle logout has an onClick CTA (#9697)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdraier authored and overmode committed Jan 3, 2025
1 parent 0a8acc1 commit 4e00e6e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions front/components/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,13 @@ export function UserMenu({
label="Meeting transcripts"
icon={BookOpenIcon}
href={`/w/${owner.sId}/assistant/labs/transcripts`}
prefetch={false}
/>
)}
{featureFlags.includes("labs_trackers") && (
<DropdownMenuItem
label="Trackers"
icon={EyeIcon}
href={`/w/${owner.sId}/assistant/labs/trackers`}
prefetch={false}
/>
)}
</>
Expand Down Expand Up @@ -149,10 +147,11 @@ export function UserMenu({

<DropdownMenuLabel label="Account" />
<DropdownMenuItem
href="/api/auth/logout"
onClick={() => {
void router.push("/api/auth/logout");
}}
icon={LogoutIcon}
label="Sign&nbsp;out"
prefetch={false}
/>
</DropdownMenuContent>
</DropdownMenu>
Expand Down

0 comments on commit 4e00e6e

Please sign in to comment.