aboutsummaryrefslogtreecommitdiff
path: root/src/pages/Page.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-07 21:58:31 +0300
committereug-vs <eug-vs@keemail.me>2020-08-07 21:58:58 +0300
commit056ef91e36f86a3278dfbb2f369939534bffe7e2 (patch)
tree4f0f6f5b3cc4475560d315bc64b43beddcadae2a /src/pages/Page.tsx
parentd9c74d25ab1f4e13cb980074e188ef6125d2d290 (diff)
downloadwhich-ui-056ef91e36f86a3278dfbb2f369939534bffe7e2.tar.gz
refactor: move urls to separate file
Diffstat (limited to 'src/pages/Page.tsx')
-rw-r--r--src/pages/Page.tsx12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/pages/Page.tsx b/src/pages/Page.tsx
index 62b6b61..85b351c 100644
--- a/src/pages/Page.tsx
+++ b/src/pages/Page.tsx
@@ -9,8 +9,8 @@ import FeedPage from './FeedPage/FeedPage';
import AuthPage from './AuthPage/AuthPage';
import HomePage from './HomePage/HomePage';
import NotificationsPage from './NotificationsPage/NotificationsPage';
-import { useNavigate } from '../hooks/useNavigate';
import PrivateRoute from './PrivateRoute';
+import urls from './urls';
const useStyles = makeStyles(theme => ({
@@ -25,17 +25,7 @@ const useStyles = makeStyles(theme => ({
}));
-const urls = {
- home: '/',
- login: '/login',
- registration: '/registration',
- profile: '/profile',
- feed: '/feed',
- notifications: '/notifications'
-};
-
const Page: React.FC = () => {
- const { page } = useNavigate();
const classes = useStyles();
const theme = useTheme();
const isMobile = useMediaQuery(theme.breakpoints.down('sm'));