Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
students
survey
Commits
a4fca0c8
Commit
a4fca0c8
authored
Jul 25, 2022
by
Lee SeoYeon
Browse files
라우트 설정
parent
2504379d
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/profile/Profile.tsx
View file @
a4fca0c8
...
...
@@ -21,7 +21,7 @@ export const Profile = () => {
async
function
createSurvey
()
{
const
newSurvey
:
SurveyType
=
await
surveyApi
.
createSurvey
(
survey
);
navigate
(
`/surveys/
edit/
${
newSurvey
.
_id
}
`
,
{
navigate
(
`/surveys/
${
newSurvey
.
_id
}
/edit
`
,
{
replace
:
true
,
});
}
...
...
@@ -36,11 +36,10 @@ export const Profile = () => {
return
(
<
div
className
=
"flex flex-col items-center"
>
<
div
className
=
"mt-10 text-xl font-bold"
>
나의 설문조사
</
div
>
<
img
src
=
{
`
${
baseImageUrl
}
/9e24ad36a2947b08c89913b01`
}
/>
<
div
className
=
"grid grid-cols-1 md:grid-cols-4 sm:grid-cols-2 gap-4 mt-6"
>
<
button
onClick
=
{
createSurvey
}
className
=
"flex h-60 w-52 items-center
border-2 border-themeColor
font-bold bg-gray-200 hover:bg-themeColor rounded-lg "
className
=
"flex h-60 w-52 items-center font-bold bg-gray-200 hover:bg-themeColor rounded-lg "
>
<
div
className
=
"text-center px-6 py-6 font-bold text-gray-500 place-items-center hover:text-white"
>
CREATE NEW SURVEY!
...
...
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