sdy

update routes

......@@ -2,22 +2,24 @@ import React from "react";
import PropTypes from "prop-types";
import { Route, Switch } from "react-router-dom";
import Auth from "./Auth/AuthContainer";
import About from "./About";
import RoomList from "./Room/RoomContainer";
import Main from "./MainPresenter";
const LoggedInRoutes = () => (
<Switch>
<Route exact path="/room-list" component={RoomList} />
<Route path="/room-list" component={RoomList} />
</Switch>
);
const LoggedOutRoutes = () => (
<Switch>
<Route exact path="/auth" component={Auth} />
<Route exact path="/forum" component={Main} />
<Route exact path="/about" component={Main} />
<Route exact path="/features" component={Main} />
<Route exact path="/support" component={Main} />
<Route exact path="/" component={Main} />
<Route path="/about" component={About} />
<Route path="/auth" component={Auth} />
<Route path="/forum" component={Main} />
<Route path="/features" component={Main} />
<Route path="/support" component={Main} />
</Switch>
);
......