Skip to content

Commit 7913392

Browse files
committed
PEER-249 Add common layout for question details: Add files
Signed-off-by: SeeuSim <[email protected]>
1 parent d2a2ad7 commit 7913392

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { observer } from 'mobx-react';
2+
import { Outlet } from 'react-router-dom';
3+
4+
export const AuthedLayout = observer(() => {
5+
return (
6+
<div id='main' className='flex h-[calc(100dvh-64px)] w-full flex-col overscroll-contain'>
7+
<Outlet />
8+
</div>
9+
// <div id='main' className='bg-background flex size-full min-h-screen flex-col'>
10+
// {/* Body */}
11+
// <div className='container'>
12+
// <Outlet />
13+
// </div>
14+
// </div>
15+
);
16+
});
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { Outlet } from 'react-router-dom';
2+
import NavBar from './nav-bar';
3+
4+
export function RootLayout() {
5+
return (
6+
<div className='text-text bg-background flex min-h-screen flex-col overscroll-contain'>
7+
<NavBar />
8+
<main className='flex flex-1'>
9+
<Outlet />
10+
</main>
11+
</div>
12+
);
13+
}

0 commit comments

Comments
 (0)