diff options
author | eug-vs <eug-vs@keemail.me> | 2020-08-08 09:33:45 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-08-08 09:33:45 +0300 |
commit | 10e146ef0215d41527f0466b0e139a6805b96540 (patch) | |
tree | fff44e753ea02132c3717002a9e6f5642a860f43 /src/components/Header/Header.tsx | |
parent | cc1133ff817218f80476d91ec509c5eaa6be86e6 (diff) | |
download | which-ui-10e146ef0215d41527f0466b0e139a6805b96540.tar.gz |
refactor: remove urls file
Diffstat (limited to 'src/components/Header/Header.tsx')
-rw-r--r-- | src/components/Header/Header.tsx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index ef5f9fb..9c42c31 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -15,7 +15,6 @@ import HomeIcon from '@material-ui/icons/Home'; import { useAuth } from '../../hooks/useAuth'; import SearchBar from './SearchBar'; -import urls from '../../pages/urls'; const useStyles = makeStyles(theme => ({ @@ -51,20 +50,20 @@ const Header: React.FC = () => { const isMobile = useMediaQuery(theme.breakpoints.down('sm')); const handleHome = (): void => { - history.push(urls.home); + history.push('/'); }; const handleFeed = (): void => { - history.push(urls.feed) + history.push('/feed') }; const handleProfile = (): void => { - if (user) history.push(urls.profile(user.username)); - else history.push(urls.login); + if (user) history.push(`/profile/${user.username}`); + else history.push('/login'); }; const handleNotifications = (): void => { - history.push(urls.notifications); + history.push('/notifications'); }; const FeedButton = ( |