mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
52 lines
1.3 KiB
JavaScript
52 lines
1.3 KiB
JavaScript
import React from "react";
|
|
|
|
import {makeStyles} from "@material-ui/core/styles";
|
|
import AppBar from "@material-ui/core/AppBar";
|
|
import Toolbar from "@material-ui/core/Toolbar";
|
|
import Typography from "@material-ui/core/Typography";
|
|
import Container from '@material-ui/core/Container';
|
|
|
|
import SideBar from "../components/SideBar";
|
|
|
|
const useStyles = makeStyles((theme) => ({
|
|
root: {
|
|
// flexGrow: 1,
|
|
display: 'flex',
|
|
},
|
|
content: {
|
|
flexGrow: 1,
|
|
height: '100vh',
|
|
overflow: 'auto',
|
|
},
|
|
appBar: {
|
|
zIndex: theme.zIndex.drawer + 1,
|
|
},
|
|
appBarSpacer: theme.mixins.toolbar,
|
|
}));
|
|
|
|
export default function DashboardLayout({children}) {
|
|
const classes = useStyles();
|
|
|
|
return (
|
|
<div className={classes.root}>
|
|
<AppBar className={classes.appBar}>
|
|
<Toolbar>
|
|
<Typography variant="h6" className={classes.title}>
|
|
BBGO
|
|
</Typography>
|
|
{/* <Button color="inherit">Login</Button> */}
|
|
</Toolbar>
|
|
</AppBar>
|
|
|
|
<SideBar/>
|
|
|
|
<main className={classes.content}>
|
|
<div className={classes.appBarSpacer}/>
|
|
<Container>
|
|
{children}
|
|
</Container>
|
|
</main>
|
|
</div>
|
|
);
|
|
}
|