We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b219c3b commit 6d9acb5Copy full SHA for 6d9acb5
frontend/app/layout.tsx
@@ -40,10 +40,8 @@ export default function RootLayout({
40
disableTransitionOnChange
41
>
42
<AuthProvider>
43
- <AuthPageWrapper>
44
- <Navbar />
45
- {children}
46
- </AuthPageWrapper>
+ <Navbar />
+ <AuthPageWrapper>{children}</AuthPageWrapper>
47
</AuthProvider>
48
<Toaster />
49
</ThemeProvider>
frontend/components/navbar.tsx
@@ -22,6 +22,10 @@ export function Navbar() {
22
23
const isActive = (path: string) => pathname === path;
24
25
+ if (!auth?.user) {
26
+ return;
27
+ }
28
+
29
return (
30
<nav className="bg-background border-b">
31
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
0 commit comments