Skip to content

Commit

Permalink
Add ability to log out from welcome upgrade page
Browse files Browse the repository at this point in the history
  • Loading branch information
elie222 committed Oct 2, 2024
1 parent 34f80f2 commit 13fd14d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
25 changes: 25 additions & 0 deletions apps/web/app/(landing)/welcome-upgrade/WelcomeUpgradeNav.tsx
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>
);
}
6 changes: 4 additions & 2 deletions apps/web/app/(landing)/welcome-upgrade/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { CheckCircleIcon } from "lucide-react";
import { Pricing } from "@/app/(app)/premium/Pricing";
import { Footer } from "@/app/(landing)/home/Footer";
import { Loading } from "@/components/Loading";
import { WelcomeUpgradeNav } from "@/app/(landing)/welcome-upgrade/WelcomeUpgradeNav";

export default function WelcomeUpgradePage() {
return (
<div className="mt-8">
<>
<WelcomeUpgradeNav />
<Suspense fallback={<Loading />}>
<Pricing
header={
Expand All @@ -32,7 +34,7 @@ export default function WelcomeUpgradePage() {
/>
</Suspense>
<Footer />
</div>
</>
);
}

Expand Down

1 comment on commit 13fd14d

@vercel
Copy link

@vercel vercel bot commented on 13fd14d Oct 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.