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
af606e31
Commit
af606e31
authored
Aug 19, 2022
by
Yoon, Daeki
😅
Browse files
링크 주소 변경
parent
528f2f5e
Changes
2
Show whitespace changes
Inline
Side-by-side
frontend/src/surveys/ModifySurvey.tsx
View file @
af606e31
...
@@ -50,7 +50,8 @@ export const ModifySurvey = ({ surveyData, callApi }: Props) => {
...
@@ -50,7 +50,8 @@ export const ModifySurvey = ({ surveyData, callApi }: Props) => {
setLoading
(
true
);
setLoading
(
true
);
const
result
=
await
callApi
(
survey
);
const
result
=
await
callApi
(
survey
);
console
.
log
(
"
result:
"
,
result
);
console
.
log
(
"
result:
"
,
result
);
navigate
(
"
/surveys/profile
"
,
{
replace
:
true
});
// navigate("/surveys/profile", { replace: true });
navigate
(
-
1
);
}
catch
(
error
)
{
}
catch
(
error
)
{
setLoading
(
false
);
setLoading
(
false
);
catchErrors
(
error
,
setError
);
catchErrors
(
error
,
setError
);
...
...
frontend/src/surveys/SurveyCard.tsx
View file @
af606e31
...
@@ -22,11 +22,7 @@ export const SurveyCard = ({ survey, handleDelete }: Props) => {
...
@@ -22,11 +22,7 @@ export const SurveyCard = ({ survey, handleDelete }: Props) => {
return
(
return
(
<
div
className
=
"w-40 h-48 md:w-52 md:h-60 rounded border-2 hover:border-2 hover:border-themeColor"
>
<
div
className
=
"w-40 h-48 md:w-52 md:h-60 rounded border-2 hover:border-2 hover:border-themeColor"
>
<
Link
<
Link
to
=
{
`
${
survey
.
_id
}
`
}
state
=
{
survey
}
className
=
"w-full pt-1"
>
to
=
{
`/surveys/
${
survey
.
_id
}
/edit`
}
state
=
{
survey
}
className
=
"w-full pt-1"
>
<
p
className
=
"font-bold"
>
<
p
className
=
"font-bold"
>
{
survey
.
title
?
survey
.
title
:
"
제목없는 설문조사
"
}
{
survey
.
title
?
survey
.
title
:
"
제목없는 설문조사
"
}
</
p
>
</
p
>
...
...
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