From 5ba6455b2aa6c75c336628bda59e70b46e3b1d6b Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Fri, 7 Aug 2020 22:42:50 +0300
Subject: refactor: separate Auth pages

---
 src/pages/Page.tsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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

diff --git a/src/pages/Page.tsx b/src/pages/Page.tsx
index 29b9564..47f5f50 100644
--- a/src/pages/Page.tsx
+++ b/src/pages/Page.tsx
@@ -6,7 +6,8 @@ import { BrowserRouter, Switch } from 'react-router-dom';
 
 import ProfilePage from './ProfilePage/ProfilePage';
 import FeedPage from './FeedPage/FeedPage';
-import AuthPage from './AuthPage/AuthPage';
+import LoginPage from './LoginPage/LoginPage';
+import RegistrationPage from './RegistrationPage/RegistrationPage';
 import HomePage from './HomePage/HomePage';
 import NotificationsPage from './NotificationsPage/NotificationsPage';
 import Route from './Route';
@@ -42,8 +43,8 @@ const Page: React.FC = () => {
         <div className={classes.root}>
           <Switch>
             <Route exact path={urls.home} component={HomePage} />
-            <Route exact path={urls.login} component={AuthPage} />
-            <Route exact path={urls.registration} component={AuthPage} />
+            <Route exact path={urls.login} component={LoginPage} />
+            <Route exact path={urls.registration} component={RegistrationPage} />
             <Route exact path={urls.feed} component={FeedPage} />
             <Route exact path={urls.notifications} component={NotificationsPage} />
             <Route path={urls.profile} component={ProfilePage} />
-- 
cgit v1.2.3

