11import { signInPageUrl } from '@codesandbox/common/lib/utils/url-generator' ;
2- import css from '@styled-system/css' ;
32import React , { useEffect , FunctionComponent } from 'react' ;
43import { Redirect } from 'react-router-dom' ;
54import { client } from 'app/graphql/client' ;
65import { useOvermind } from 'app/overmind' ;
76import codesandboxBlack from '@codesandbox/components/lib/themes/codesandbox-black' ;
87import { ThemeProvider , Stack } from '@codesandbox/components' ;
8+ import css from '@styled-system/css' ;
9+
10+ import { Header } from './Header' ;
911import { Sidebar } from './Sidebar' ;
1012import { Content } from './Content' ;
1113
@@ -30,18 +32,21 @@ export const Dashboard: FunctionComponent = () => {
3032
3133 return (
3234 < ThemeProvider theme = { codesandboxBlack } >
33- < Stack
34- gap = { 6 }
35- css = { css ( {
36- backgroundColor : 'sideBar.background' ,
37- fontFamily : "'Inter', sans-serif" ,
38- color : 'sideBar.foreground' ,
39- minHeight : '100vh' ,
40- width : '100vw' ,
41- } ) }
42- >
43- < Sidebar />
44- < Content />
35+ < Stack direction = "vertical" >
36+ < Header />
37+ < Stack
38+ gap = { 6 }
39+ css = { css ( {
40+ backgroundColor : 'sideBar.background' ,
41+ fontFamily : "'Inter', sans-serif" ,
42+ color : 'sideBar.foreground' ,
43+ minHeight : 'calc(100vh - 48px)' ,
44+ width : '100vw' ,
45+ } ) }
46+ >
47+ < Sidebar />
48+ < Content />
49+ </ Stack >
4550 </ Stack >
4651 </ ThemeProvider >
4752 ) ;
0 commit comments