Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -2,6 +2,7 @@ import React from 'react'; | ... | @@ -2,6 +2,7 @@ import React from 'react'; |
2 | import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'; | 2 | import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'; |
3 | import { socket, SocketProvider } from './contexts/SocketContext'; | 3 | import { socket, SocketProvider } from './contexts/SocketContext'; |
4 | import { Login } from './pages/Login'; | 4 | import { Login } from './pages/Login'; |
5 | +import { Room } from './pages/Room'; | ||
5 | import { Rooms } from './pages/Rooms'; | 6 | import { Rooms } from './pages/Rooms'; |
6 | 7 | ||
7 | const App: React.FC = () => { | 8 | const App: React.FC = () => { |
... | @@ -11,7 +12,7 @@ const App: React.FC = () => { | ... | @@ -11,7 +12,7 @@ const App: React.FC = () => { |
11 | <Switch> | 12 | <Switch> |
12 | <Route exact path='/' component={Login}/> | 13 | <Route exact path='/' component={Login}/> |
13 | <Route path='/rooms' component={Rooms}></Route> | 14 | <Route path='/rooms' component={Rooms}></Route> |
14 | - <Route path='/:roomId'></Route> | 15 | + <Route path='/:roomId' component={Room}></Route> |
15 | </Switch> | 16 | </Switch> |
16 | </Router> | 17 | </Router> |
17 | </SocketProvider> | 18 | </SocketProvider> | ... | ... |
-
Please register or login to post a comment