Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-05-22 15:11:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d865609fcf7b515d021c38d68912f6241f3dbb89
d865609f
1 parent
844c7d02
update room URL component
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
front/src/Routes/Router.js
front/src/Routes/Router.js
View file @
d865609
...
...
@@ -3,12 +3,12 @@ import PropTypes from "prop-types";
import
{
Route
,
Switch
,
Redirect
}
from
"react-router-dom"
;
import
Auth
from
"./Auth/AuthContainer"
;
import
RoomList
from
"./Room/RoomContainer"
;
import
Home
from
"../Components/Home
"
;
import
Chat
from
"../Components/ChatScreen
"
;
const
LoggedInRoutes
=
()
=>
(
<
Switch
>
<
Route
exact
path
=
"/"
component
=
{
RoomList
}
/
>
<
Route
path
=
"/:roomname"
component
=
{
Home
}
/
>
<
Route
path
=
"/:roomname"
component
=
{
Chat
}
/
>
<
Redirect
from
=
"*"
to
=
"/"
/>
<
/Switch
>
);
...
...
Please
register
or
login
to post a comment