Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
survey
Commits
f299336a
Commit
f299336a
authored
Aug 19, 2022
by
Yoon, Daeki
😅
Browse files
컴포넌트 이름 변경
parent
e4aab5a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/MainRouter.tsx
View file @
f299336a
...
...
@@ -3,17 +3,18 @@ import { BrowserRouter, Route, Routes } from "react-router-dom";
import
{
Login
,
SignUp
,
RequireAuth
}
from
"
./auth
"
;
import
{
NotFound
}
from
"
./commons
"
;
import
{
Profile
,
CreateSurvey
,
Preview
,
EditSurvey
,
AnswerSurvey
,
ResultSurvey
,
SurveysList
,
AnswerPreview
,
}
from
"
./surveys
"
;
import
{
AnswerLayout
,
BaseLayout
,
ModifyLayout
,
SurveyLayout
,
SurveysLayout
,
ResultLayout
,
}
from
"
./layouts
"
;
import
{
Home
}
from
"
./home
"
;
...
...
@@ -37,14 +38,17 @@ export const MainRouter = () => {
path
=
"/surveys"
element
=
{
<
RequireAuth
>
<
Modify
Layout
/>
<
Surveys
Layout
/>
</
RequireAuth
>
}
>
<
Route
index
element
=
{
<
SurveysList
/>
}
/>
<
Route
path
=
"create"
element
=
{
<
CreateSurvey
/>
}
/>
<
Route
path
=
"profile"
element
=
{
<
Profile
/>
}
/>
<
Route
path
=
":surveyId"
element
=
{
<
Preview
/>
}
/>
<
Route
path
=
":surveyId/edit"
element
=
{
<
EditSurvey
/>
}
/>
<
Route
path
=
":surveyId"
element
=
{
<
SurveyLayout
/>
}
>
<
Route
index
element
=
{
<
AnswerPreview
/>
}
/>
<
Route
path
=
"edit"
element
=
{
<
EditSurvey
/>
}
/>
<
Route
path
=
"result"
element
=
{
<
ResultSurvey
/>
}
/>
</
Route
>
</
Route
>
<
Route
path
=
"*"
element
=
{
<
NotFound
/>
}
/>
</
Route
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment