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
Show 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";
...
@@ -3,17 +3,18 @@ import { BrowserRouter, Route, Routes } from "react-router-dom";
import
{
Login
,
SignUp
,
RequireAuth
}
from
"
./auth
"
;
import
{
Login
,
SignUp
,
RequireAuth
}
from
"
./auth
"
;
import
{
NotFound
}
from
"
./commons
"
;
import
{
NotFound
}
from
"
./commons
"
;
import
{
import
{
Profile
,
CreateSurvey
,
CreateSurvey
,
Preview
,
EditSurvey
,
EditSurvey
,
AnswerSurvey
,
AnswerSurvey
,
ResultSurvey
,
ResultSurvey
,
SurveysList
,
AnswerPreview
,
}
from
"
./surveys
"
;
}
from
"
./surveys
"
;
import
{
import
{
AnswerLayout
,
AnswerLayout
,
BaseLayout
,
BaseLayout
,
ModifyLayout
,
SurveyLayout
,
SurveysLayout
,
ResultLayout
,
ResultLayout
,
}
from
"
./layouts
"
;
}
from
"
./layouts
"
;
import
{
Home
}
from
"
./home
"
;
import
{
Home
}
from
"
./home
"
;
...
@@ -37,14 +38,17 @@ export const MainRouter = () => {
...
@@ -37,14 +38,17 @@ export const MainRouter = () => {
path
=
"/surveys"
path
=
"/surveys"
element
=
{
element
=
{
<
RequireAuth
>
<
RequireAuth
>
<
Modify
Layout
/>
<
Surveys
Layout
/>
</
RequireAuth
>
</
RequireAuth
>
}
}
>
>
<
Route
index
element
=
{
<
SurveysList
/>
}
/>
<
Route
path
=
"create"
element
=
{
<
CreateSurvey
/>
}
/>
<
Route
path
=
"create"
element
=
{
<
CreateSurvey
/>
}
/>
<
Route
path
=
"profile"
element
=
{
<
Profile
/>
}
/>
<
Route
path
=
":surveyId"
element
=
{
<
SurveyLayout
/>
}
>
<
Route
path
=
":surveyId"
element
=
{
<
Preview
/>
}
/>
<
Route
index
element
=
{
<
AnswerPreview
/>
}
/>
<
Route
path
=
":surveyId/edit"
element
=
{
<
EditSurvey
/>
}
/>
<
Route
path
=
"edit"
element
=
{
<
EditSurvey
/>
}
/>
<
Route
path
=
"result"
element
=
{
<
ResultSurvey
/>
}
/>
</
Route
>
</
Route
>
</
Route
>
<
Route
path
=
"*"
element
=
{
<
NotFound
/>
}
/>
<
Route
path
=
"*"
element
=
{
<
NotFound
/>
}
/>
</
Route
>
</
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