Showing
1 changed file
with
8 additions
and
6 deletions
... | @@ -2,22 +2,24 @@ import React from "react"; | ... | @@ -2,22 +2,24 @@ import React from "react"; |
2 | import PropTypes from "prop-types"; | 2 | import PropTypes from "prop-types"; |
3 | import { Route, Switch } from "react-router-dom"; | 3 | import { Route, Switch } from "react-router-dom"; |
4 | import Auth from "./Auth/AuthContainer"; | 4 | import Auth from "./Auth/AuthContainer"; |
5 | +import About from "./About"; | ||
5 | import RoomList from "./Room/RoomContainer"; | 6 | import RoomList from "./Room/RoomContainer"; |
6 | import Main from "./MainPresenter"; | 7 | import Main from "./MainPresenter"; |
7 | 8 | ||
8 | const LoggedInRoutes = () => ( | 9 | const LoggedInRoutes = () => ( |
9 | <Switch> | 10 | <Switch> |
10 | - <Route exact path="/room-list" component={RoomList} /> | 11 | + <Route path="/room-list" component={RoomList} /> |
11 | </Switch> | 12 | </Switch> |
12 | ); | 13 | ); |
13 | 14 | ||
14 | const LoggedOutRoutes = () => ( | 15 | const LoggedOutRoutes = () => ( |
15 | <Switch> | 16 | <Switch> |
16 | - <Route exact path="/auth" component={Auth} /> | 17 | + <Route exact path="/" component={Main} /> |
17 | - <Route exact path="/forum" component={Main} /> | 18 | + <Route path="/about" component={About} /> |
18 | - <Route exact path="/about" component={Main} /> | 19 | + <Route path="/auth" component={Auth} /> |
19 | - <Route exact path="/features" component={Main} /> | 20 | + <Route path="/forum" component={Main} /> |
20 | - <Route exact path="/support" component={Main} /> | 21 | + <Route path="/features" component={Main} /> |
22 | + <Route path="/support" component={Main} /> | ||
21 | </Switch> | 23 | </Switch> |
22 | ); | 24 | ); |
23 | 25 | ... | ... |
-
Please register or login to post a comment