From 810fd0dcd2599de966393716d573dd7500eaae37 Mon Sep 17 00:00:00 2001 From: Shivam Kumar <67449261+shiv-2810@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:51:42 +0530 Subject: [PATCH 1/2] Login button showing after successfull login bug -> FIXED --- app/(marketing)/layout.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/(marketing)/layout.tsx b/app/(marketing)/layout.tsx index 902099c..8efb347 100644 --- a/app/(marketing)/layout.tsx +++ b/app/(marketing)/layout.tsx @@ -5,6 +5,7 @@ import { cn } from "@/lib/utils" import { buttonVariants } from "@/components/ui/button" import { MainNav } from "@/components/main-nav" import { SiteFooter } from "@/components/site-footer" +import { getCurrentUser } from "@/lib/session" interface MarketingLayoutProps { children: React.ReactNode @@ -13,12 +14,13 @@ interface MarketingLayoutProps { export default async function MarketingLayout({ children, }: MarketingLayoutProps) { + const user = await getCurrentUser(); return (
- : null }
{children}
From 90fff9ee7850f5e960baac0d238b00a021b41c64 Mon Sep 17 00:00:00 2001 From: Shivam Kumar <67449261+shiv-2810@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:54:12 +0530 Subject: [PATCH 2/2] Login button showing after successfull login bug -> FIXED --- app/(marketing)/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/(marketing)/layout.tsx b/app/(marketing)/layout.tsx index 8efb347..e0a2d82 100644 --- a/app/(marketing)/layout.tsx +++ b/app/(marketing)/layout.tsx @@ -26,7 +26,7 @@ export default async function MarketingLayout({ className={cn( buttonVariants({ variant: "secondary", size: "sm" }), "px-4" - )} + )} > Login