diff options
author | Anton Dubik <anton.dubik33@gmail.com> | 2020-01-04 14:28:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-04 14:28:05 +0300 |
commit | a86a19717d9824c7a6dde6a8252255cf56acf133 (patch) | |
tree | c690264e33b287201f7761fb88533fcb18a33f40 /src/components | |
parent | 347f9d604044236830020f232fab3733c628720f (diff) | |
parent | 48981ca265b537fd87325d460d01e67f0d9ab819 (diff) | |
download | chrono-cube-ui-a86a19717d9824c7a6dde6a8252255cf56acf133.tar.gz |
Merge pull request #17 from Eug-VS/warnings-tabs
Fix Tabs warning
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Header/Header.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Header/Header.js b/src/components/Header/Header.js index 1c4e77d..021f2b4 100644 --- a/src/components/Header/Header.js +++ b/src/components/Header/Header.js @@ -18,7 +18,7 @@ const useStyles = makeStyles(theme => ({ })); -const Header = ({ setPage }) => { +const Header = ({ page, setPage }) => { const classes = useStyles(); const handleChange = (event, newPage) => { @@ -29,7 +29,7 @@ const Header = ({ setPage }) => { return ( <AppBar position="sticky" className={classes.header}> - <Tabs onChange={handleChange}> + <Tabs onChange={handleChange} value={page}> <Typography variant="h4" className={classes.logo}> ChronoCube </Typography> { menuItems.map(menuItem => ( <Tab label={menuItem} value={menuItem}/> |