diff options
author | Eug-VS <eug-vs@keemail.me> | 2020-01-06 01:19:59 +0300 |
---|---|---|
committer | Eug-VS <eug-vs@keemail.me> | 2020-01-06 01:19:59 +0300 |
commit | eb66bee40bdaacf6d2f610bf0727c8a42b1e2502 (patch) | |
tree | da2ccfabfbb93cf6220e7263a25d8383d736e41c /src/components/Header/Header.js | |
parent | ebfeecb82befa0a6fcf9987ba6a5b8ceacb40e16 (diff) | |
download | chrono-cube-ui-eb66bee40bdaacf6d2f610bf0727c8a42b1e2502.tar.gz |
Fix Header warnings
Diffstat (limited to 'src/components/Header/Header.js')
-rw-r--r-- | src/components/Header/Header.js | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/components/Header/Header.js b/src/components/Header/Header.js index 9c286f7..26ba45c 100644 --- a/src/components/Header/Header.js +++ b/src/components/Header/Header.js @@ -3,14 +3,18 @@ import { AppBar, Tabs, Tab, - Typography + Typography, + Toolbar, } from "@material-ui/core"; import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles(theme => ({ logo: { color: theme.palette.secondary.main, - margin: theme.spacing(2, 3, 2, 2) + margin: theme.spacing(0, 2, 0, 3) + }, + tab: { + padding: theme.spacing(3, 0, 3, 0) }, })); @@ -26,12 +30,14 @@ const Header = ({ page, setPage }) => { return ( <AppBar position="sticky" className={classes.header}> - <Tabs onChange={handleChange} value={page}> + <Toolbar> <Typography variant="h4" className={classes.logo}> ChronoCube </Typography> - { menuItems.map(menuItem => ( - <Tab label={menuItem} value={menuItem}/> - ))} - </Tabs> + <Tabs onChange={handleChange} value={page}> + { menuItems.map(menuItem => ( + <Tab label={menuItem} value={menuItem} key={menuItem} className={classes.tab}/> + ))} + </Tabs> + </Toolbar> </AppBar> ); }; |