aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-07-03 19:02:06 +0300
committereug-vs <eug-vs@keemail.me>2020-07-03 19:02:06 +0300
commit2247e281f7f1c8c59ff758053dcb7b2c4f28d4a9 (patch)
treed5460c2a27b0029ecb1cead8c661548d6ed6070b /src/components
parentcb521315c2291eda6b273b5f8a2e014c24ea9758 (diff)
downloadwhich-ui-2247e281f7f1c8c59ff758053dcb7b2c4f28d4a9.tar.gz
feat: create a bunch of empty pages
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Header/Header.tsx15
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}>