-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to log out from welcome upgrade page
- Loading branch information
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
apps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeNav.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"use client"; | ||
|
||
import Link from "next/link"; | ||
import { Button } from "@/components/ui/button"; | ||
import { logOut } from "@/utils/user"; | ||
|
||
export function WelcomeUpgradeNav() { | ||
return ( | ||
<nav className="w-full px-6 py-4"> | ||
<div className="flex justify-end gap-2"> | ||
<Button asChild variant="ghost"> | ||
<Link href="/settings">Account</Link> | ||
</Button> | ||
<Button | ||
onClick={() => { | ||
logOut("/"); | ||
}} | ||
variant="ghost" | ||
> | ||
Log out | ||
</Button> | ||
</div> | ||
</nav> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13fd14d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
inbox-zero – ./
inbox-zero-git-main-inbox-zero.vercel.app
inbox-zero.vercel.app
www.getinboxzero.com
getinboxzero.com
inbox-zero-inbox-zero.vercel.app