Skip to content

Commit 955d89b

Browse files
committed
Conditional rendering of sidebar
1 parent ceeb8d2 commit 955d89b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/app/(auth)/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const Layout = ({ children }: { children: ReactNode }) => {
111111

112112
return (
113113
<div className="flex h-full overflow-y-auto">
114-
<Sidebar
114+
{token && <Sidebar
115115
className="sticky top-0 h-screen"
116116
rootStyles={{
117117
borderColor: "#171C28",
@@ -149,7 +149,7 @@ const Layout = ({ children }: { children: ReactNode }) => {
149149
</Menu>
150150
}
151151
</div>
152-
</Sidebar>
152+
</Sidebar>}
153153
<div className="w-full overflow-y-scroll">{children}</div>
154154
</div>
155155
);

0 commit comments

Comments
 (0)