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-23 05:43:54 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5bcba26628d21781bd4f5497c2ab436dc08c3b80
5bcba266
1 parent
cc6fe032
update Routes
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
front/src/Routes/Router.js
front/src/Routes/Router.js
View file @
5bcba26
...
...
@@ -3,12 +3,14 @@ import PropTypes from "prop-types";
import
{
Route
,
Switch
,
Redirect
}
from
"react-router-dom"
;
import
Auth
from
"./Auth/AuthContainer"
;
import
RoomList
from
"./Room/RoomContainer"
;
import
Chat
from
".
./Components/ChatScreen
"
;
import
Chat
from
".
/Chat/ChatContainer
"
;
const
LoggedInRoutes
=
()
=>
(
<
Switch
>
<
Route
exact
path
=
"/"
component
=
{
RoomList
}
/
>
<
Route
path
=
"/:roomname"
component
=
{
Chat
}
/
>
<
Route
exact
path
=
"/:roomname"
component
=
{
Chat
}
/
>
<
Route
path
=
"/:roomname/People"
component
=
{
Auth
}
/
>
<
Route
path
=
"/:roomname/:categoryName"
component
=
{
Auth
}
/
>
<
Redirect
from
=
"*"
to
=
"/"
/>
<
/Switch
>
);
...
...
Please
register
or
login
to post a comment