From 056ef91e36f86a3278dfbb2f369939534bffe7e2 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Fri, 7 Aug 2020 21:58:31 +0300
Subject: refactor: move urls to separate file

---
 src/pages/Page.tsx | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

(limited to 'src/pages/Page.tsx')

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'));
-- 
cgit v1.2.3

