sdy

update room URL component

...@@ -3,12 +3,12 @@ import PropTypes from "prop-types"; ...@@ -3,12 +3,12 @@ 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 Home from "../Components/Home"; 6 +import Chat from "../Components/ChatScreen";
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={Home} /> 11 + <Route path="/:roomname" component={Chat} />
12 <Redirect from="*" to="/" /> 12 <Redirect from="*" to="/" />
13 </Switch> 13 </Switch>
14 ); 14 );
......