sdy

update Routes

...@@ -3,12 +3,14 @@ import PropTypes from "prop-types"; ...@@ -3,12 +3,14 @@ import PropTypes from "prop-types";
3 import { Route, Switch, Redirect } from "react-router-dom"; 3 import { Route, Switch, Redirect } from "react-router-dom";
4 import Auth from "./Auth/AuthContainer"; 4 import Auth from "./Auth/AuthContainer";
5 import RoomList from "./Room/RoomContainer"; 5 import RoomList from "./Room/RoomContainer";
6 -import Chat from "../Components/ChatScreen"; 6 +import Chat from "./Chat/ChatContainer";
7 7
8 const LoggedInRoutes = () => ( 8 const LoggedInRoutes = () => (
9 <Switch> 9 <Switch>
10 <Route exact path="/" component={RoomList} /> 10 <Route exact path="/" component={RoomList} />
11 - <Route path="/:roomname" component={Chat} /> 11 + <Route exact path="/:roomname" component={Chat} />
12 + <Route path="/:roomname/People" component={Auth} />
13 + <Route path="/:roomname/:categoryName" component={Auth} />
12 <Redirect from="*" to="/" /> 14 <Redirect from="*" to="/" />
13 </Switch> 15 </Switch>
14 ); 16 );
......