Skip to content

Commit

Permalink
Handle logout has an onClick cta
Browse files Browse the repository at this point in the history
  • Loading branch information
tdraier committed Jan 2, 2025
1 parent 588f1a4 commit 25c2f7c
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 25c2f7c

Please sign in to comment.