Skip to content

Commit

Permalink
sidebar layout
Browse files Browse the repository at this point in the history
  • Loading branch information
woo-jk committed Jul 31, 2024
1 parent d35099d commit c05b498
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
11 changes: 11 additions & 0 deletions src/app/(sidebar)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Sidebar } from '@/container/Sidebar/Sidebar';
import { PropsWithChildren } from 'react';

export default function SidebarLayout({ children }: PropsWithChildren) {
return (
<div className="flex">
<Sidebar />
<div className="flex-grow">{children}</div>
</div>
);
}
8 changes: 2 additions & 6 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body className={cn(inter.className, 'flex bg-neutral-1')}>
<Sidebar />
{/* FIXME: */}
<div className="flex-grow">
<QueryProvider>{children}</QueryProvider>
</div>
<body className={cn(inter.className, 'bg-neutral-1')}>
<QueryProvider>{children}</QueryProvider>
</body>
</html>
);
Expand Down

0 comments on commit c05b498

Please sign in to comment.