sdy

add routes

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