aboutsummaryrefslogtreecommitdiff
path: root/src/pages/Page.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-07 22:42:50 +0300
committereug-vs <eug-vs@keemail.me>2020-08-07 22:42:50 +0300
commit5ba6455b2aa6c75c336628bda59e70b46e3b1d6b (patch)
tree89c9f5652fc184b750e8d963bea113fe06539e0d /src/pages/Page.tsx
parent2d6ba7459fff67823b55cfc39342896873962714 (diff)
downloadwhich-ui-5ba6455b2aa6c75c336628bda59e70b46e3b1d6b.tar.gz
refactor: separate Auth pages
Diffstat (limited to 'src/pages/Page.tsx')
-rw-r--r--src/pages/Page.tsx7
1 files changed, 4 insertions, 3 deletions
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} />