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
6635e0b8
Commit
6635e0b8
authored
Jul 01, 2022
by
Lee SeoYeon
Browse files
.
parent
728f6ffd
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/package.json
View file @
6635e0b8
...
...
@@ -12,9 +12,12 @@
"author"
:
"Daeki Yoon"
,
"license"
:
"ISC"
,
"devDependencies"
:
{
"@types/bcryptjs"
:
"^2.4.2"
,
"@types/cookie-parser"
:
"^1.4.3"
,
"@types/react"
:
"^18.0.14"
,
"@types/react-dom"
:
"^18.0.5"
,
"@types/react-router-dom"
:
"^5.3.3"
,
"@types/validator"
:
"^13.7.3"
,
"autoprefixer"
:
"^10.4.7"
,
"css-loader"
:
"^6.7.1"
,
"html-webpack-plugin"
:
"^5.5.0"
,
...
...
@@ -29,8 +32,11 @@
"webpack-dev-server"
:
"^4.9.2"
},
"dependencies"
:
{
"bcryptjs"
:
"^2.4.3"
,
"cookie-parser"
:
"^1.4.6"
,
"react"
:
"^18.2.0"
,
"react-dom"
:
"^18.2.0"
,
"react-router-dom"
:
"^6.3.0"
"react-router-dom"
:
"^6.3.0"
,
"validator"
:
"^13.7.0"
}
}
frontend/src/SurveyRouter.tsx
View file @
6635e0b8
...
...
@@ -2,7 +2,7 @@ import React from "react";
import
{
BrowserRouter
,
Route
,
Routes
}
from
"
react-router-dom
"
;
import
App
from
"
./App
"
;
import
{
Login
,
SignUp
}
from
"
./auth
"
;
import
{
CreateSurveyForm
}
from
"
./commons
"
;
import
{
CreateSurveyForm
,
SurveyForm
}
from
"
./commons
"
;
import
{
Home
}
from
"
./home
"
;
export
const
SurveyRouter
=
()
=>
{
...
...
@@ -14,6 +14,7 @@ export const SurveyRouter = () => {
<
Route
path
=
"login"
element
=
{
<
Login
/>
}
/>
<
Route
path
=
"signup"
element
=
{
<
SignUp
/>
}
/>
<
Route
path
=
"create"
element
=
{
<
CreateSurveyForm
/>
}
/>
<
Route
path
=
"survey"
element
=
{
<
SurveyForm
/>
}
/>
</
Route
>
</
Routes
>
</
BrowserRouter
>
...
...
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