aboutsummaryrefslogtreecommitdiff
path: root/src/pages/Page.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-08 09:33:45 +0300
committereug-vs <eug-vs@keemail.me>2020-08-08 09:33:45 +0300
commit10e146ef0215d41527f0466b0e139a6805b96540 (patch)
treefff44e753ea02132c3717002a9e6f5642a860f43 /src/pages/Page.tsx
parentcc1133ff817218f80476d91ec509c5eaa6be86e6 (diff)
downloadwhich-ui-10e146ef0215d41527f0466b0e139a6805b96540.tar.gz
refactor: remove urls file
Diffstat (limited to 'src/pages/Page.tsx')
-rw-r--r--src/pages/Page.tsx13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/pages/Page.tsx b/src/pages/Page.tsx
index dd413bf..34a1046 100644
--- a/src/pages/Page.tsx
+++ b/src/pages/Page.tsx
@@ -11,7 +11,6 @@ import RegistrationPage from './RegistrationPage/RegistrationPage';
import HomePage from './HomePage/HomePage';
import NotificationsPage from './NotificationsPage/NotificationsPage';
import Route from './Route';
-import urls from './urls';
const useStyles = makeStyles(theme => ({
@@ -41,12 +40,12 @@ const Page: React.FC = () => {
>
<div className={classes.root}>
<Switch>
- <Route exact path={urls.home} component={HomePage} />
- <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(':username')} component={ProfilePage} />
+ <Route exact path="/" component={HomePage} />
+ <Route exact path="/login" component={LoginPage} />
+ <Route exact path="/registration" component={RegistrationPage} />
+ <Route exact path="/feed" component={FeedPage} />
+ <Route exact path="/notifications" component={NotificationsPage} />
+ <Route path="/profile/:username" component={ProfilePage} />
</Switch>
</div>
</SnackbarProvider>