aboutsummaryrefslogtreecommitdiff
path: root/src/components/Header/Header.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-06-14 22:42:52 +0300
committereug-vs <eug-vs@keemail.me>2020-06-14 22:42:52 +0300
commitc311c538a3442aed8d77449736f28be66feea57c (patch)
treee555dd765c690e3e269996d00a08814afad700d4 /src/components/Header/Header.tsx
parent14b70c34a1b88c83e89f483399debd60560ed70b (diff)
downloadwhich-ui-c311c538a3442aed8d77449736f28be66feea57c.tar.gz
feat: configure navigation
Diffstat (limited to 'src/components/Header/Header.tsx')
-rw-r--r--src/components/Header/Header.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx
index 0ee6b5f..4e25fa3 100644
--- a/src/components/Header/Header.tsx
+++ b/src/components/Header/Header.tsx
@@ -13,7 +13,7 @@ import HomeIcon from '@material-ui/icons/Home';
import SearchBar from './SearchBar';
interface PropTypes {
- setPage: (newPage: string) => void;
+ navigate: (prefix: string) => void;
}
const useStyles = makeStyles({
@@ -28,15 +28,15 @@ const useStyles = makeStyles({
}
});
-const Header: React.FC<PropTypes> = ({ setPage }) => {
+const Header: React.FC<PropTypes> = ({ navigate }) => {
const classes = useStyles();
const handleHome = (): void => {
- setPage('feed');
+ navigate('feed');
};
const handleProfile = (): void => {
- setPage('profile');
+ navigate('profile');
};
const handleNotifications = (): void => {};