-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBase.tsx
37 lines (34 loc) · 890 Bytes
/
Base.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { AppBar, colors, Toolbar, Typography } from '@material-ui/core'
import CssBaseline from '@material-ui/core/CssBaseline'
import { makeStyles, Theme } from '@material-ui/core/styles'
import React, { Fragment } from 'react'
const useStyles = makeStyles((theme: Theme) => {
return {
appBar: {
zIndex: theme.zIndex.drawer + 1,
},
}
})
const Base = ({ children }) => {
const classes = useStyles()
return (
<Fragment>
<CssBaseline />
<AppBar className={classes.appBar} position='fixed'>
<Toolbar>
<Typography variant='h6'>Process Monitor</Typography>
</Toolbar>
</AppBar>
<div
style={{
backgroundColor: colors.grey[100],
minHeight: '100vh',
}}
>
<Toolbar />
<div className='main'>{children}</div>
</div>
</Fragment>
)
}
export default Base