diff options
author | eug-vs <eug-vs@keemail.me> | 2020-07-03 19:02:06 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-07-03 19:02:06 +0300 |
commit | 2247e281f7f1c8c59ff758053dcb7b2c4f28d4a9 (patch) | |
tree | d5460c2a27b0029ecb1cead8c661548d6ed6070b /src/components | |
parent | cb521315c2291eda6b273b5f8a2e014c24ea9758 (diff) | |
download | which-ui-2247e281f7f1c8c59ff758053dcb7b2c4f28d4a9.tar.gz |
feat: create a bunch of empty pages
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Header/Header.tsx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 72e40f8..339f322 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -22,7 +22,8 @@ const useStyles = makeStyles({ margin: 'auto' }, logo: { - fontWeight: 'bold' + fontWeight: 'bold', + cursor: 'pointer' }, avatar: { width: 24, @@ -36,6 +37,10 @@ const Header: React.FC = () => { const { navigate } = useNavigate(); const handleHome = (): void => { + navigate('home'); + }; + + const handleFeed = (): void => { navigate('feed'); }; @@ -44,17 +49,19 @@ const Header: React.FC = () => { else navigate('auth'); }; - const handleNotifications = (): void => {}; + const handleNotifications = (): void => { + navigate('notifications'); + }; return ( <AppBar position="fixed"> <Toolbar className={classes.root}> - <Typography variant="h5" className={classes.logo}> + <Typography variant="h5" className={classes.logo} onClick={handleHome}> Which </Typography> <SearchBar /> <div> - <IconButton onClick={handleHome}> + <IconButton onClick={handleFeed}> <HomeIcon /> </IconButton> <IconButton onClick={handleNotifications}> |