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-07-19 01:09:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
42fb1a92e85666fb8306d667d56b6feab247ba6e
42fb1a92
1 parent
949d0a7b
update routes
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
front/src/Routes/Router.js
front/src/Routes/Router.js
View file @
42fb1a9
...
...
@@ -2,22 +2,24 @@ import React from "react";
import
PropTypes
from
"prop-types"
;
import
{
Route
,
Switch
}
from
"react-router-dom"
;
import
Auth
from
"./Auth/AuthContainer"
;
import
About
from
"./About"
;
import
RoomList
from
"./Room/RoomContainer"
;
import
Main
from
"./MainPresenter"
;
const
LoggedInRoutes
=
()
=>
(
<
Switch
>
<
Route
exact
path
=
"/room-list"
component
=
{
RoomList
}
/
>
<
Route
path
=
"/room-list"
component
=
{
RoomList
}
/
>
<
/Switch
>
);
const
LoggedOutRoutes
=
()
=>
(
<
Switch
>
<
Route
exact
path
=
"/auth"
component
=
{
Auth
}
/
>
<
Route
exact
path
=
"/forum"
component
=
{
Main
}
/
>
<
Route
exact
path
=
"/about"
component
=
{
Main
}
/
>
<
Route
exact
path
=
"/features"
component
=
{
Main
}
/
>
<
Route
exact
path
=
"/support"
component
=
{
Main
}
/
>
<
Route
exact
path
=
"/"
component
=
{
Main
}
/
>
<
Route
path
=
"/about"
component
=
{
About
}
/
>
<
Route
path
=
"/auth"
component
=
{
Auth
}
/
>
<
Route
path
=
"/forum"
component
=
{
Main
}
/
>
<
Route
path
=
"/features"
component
=
{
Main
}
/
>
<
Route
path
=
"/support"
component
=
{
Main
}
/
>
<
/Switch
>
);
...
...
Please
register
or
login
to post a comment