aboutsummaryrefslogtreecommitdiff
path: root/src/components/Header/Header.tsx
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-06-15 15:55:16 +0300
committerGitHub <noreply@github.com>2020-06-15 15:55:16 +0300
commit185ab6f4025ff41313b12efb8cff49009c1af85e (patch)
treec394f99472b4c0b7ee95bec1813832c922dd5477 /src/components/Header/Header.tsx
parent987c050faa5353ae2f250d82055d6685fefa58f7 (diff)
parent2a65284a385915818ca5f3e3b7354554e19af9cb (diff)
downloadwhich-ui-185ab6f4025ff41313b12efb8cff49009c1af85e.tar.gz
Merge pull request #36 from ilyayudovin/other-profiles
Profiles
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 => {};