diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-08-11 23:17:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 23:17:28 +0300 |
commit | 94067ef2a0d9ac5c2aa5f45eca5366a2251ac04a (patch) | |
tree | 51e502c7d1be7c8ad2179daf2f5c9bfd27911636 /src/components/Header/BottomBar.tsx | |
parent | c6723fa8a2a303f356b1756b45b2190203c96582 (diff) | |
parent | b5ce9be31993f5b4bee9abbe57d775b7ea407507 (diff) | |
download | which-ui-94067ef2a0d9ac5c2aa5f45eca5366a2251ac04a.tar.gz |
Merge pull request #76 from which-ecosystem/redesign
Initial header redesign
Diffstat (limited to 'src/components/Header/BottomBar.tsx')
-rw-r--r-- | src/components/Header/BottomBar.tsx | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/components/Header/BottomBar.tsx b/src/components/Header/BottomBar.tsx new file mode 100644 index 0000000..67fe219 --- /dev/null +++ b/src/components/Header/BottomBar.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { AppBar, Toolbar } from '@material-ui/core'; +import { makeStyles } from '@material-ui/core/styles'; + +interface PropTypes { + profile: JSX.Element; + feed: JSX.Element; + notifications: JSX.Element; +} + +const useStyles = makeStyles({ + root: { + top: 'auto', + bottom: 0 + }, + toolbar: { + display: 'flex', + justifyContent: 'space-around' + } +}); + + +const BottomBar: React.FC<PropTypes> = React.memo(props => { + const classes = useStyles(); + const { profile, feed, notifications } = props; + + return ( + <AppBar position="fixed" className={classes.root}> + <Toolbar className={classes.toolbar}> + {notifications} + {feed} + {profile} + </Toolbar> + </AppBar> + ); +}); + +export default BottomBar; + |