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
ed7a837a
Commit
ed7a837a
authored
Dec 30, 2022
by
Jiwon Yoon
Browse files
home화면 create버튼 수정
parent
a93cf3d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend/src/home/Home.tsx
View file @
ed7a837a
...
@@ -9,12 +9,12 @@ export const Home = () => {
...
@@ -9,12 +9,12 @@ export const Home = () => {
가장 쉽게 설문지를 만드세요!
가장 쉽게 설문지를 만드세요!
</
div
>
</
div
>
<
Link
<
Link
to
=
{
"
/surveys
"
}
to
=
{
"
/surveys
/create
"
}
className
=
"flex justify-center items-center my-6 h-1
2
w-
2
8 border-2 font-bold
text-black
hover:text-white bg-gray-200 hover:bg-themeColor text-
xl
rounded-lg"
className
=
"flex justify-center items-center my-6 h-1
4
w-
4
8 border-2 font-bold hover:text-white bg-gray-200 hover:bg-themeColor text-
black text-xl font-bold
rounded-lg"
>
>
+
+
Create
</
Link
>
</
Link
>
<
p
className
=
"text-center
text-xl
text-
black
mb-3"
>
Create
n
ow
!
</
p
>
{
/*
<p className="text-center
justify-end
text- mb-3">Create
N
ow</p>
*/
}
<
div
className
=
"flex mt-5 md:px-48 bg-themeColor"
>
<
div
className
=
"flex mt-5 md:px-48 bg-themeColor"
>
<
img
src
=
{
homeImg
}
className
=
"m-3"
/>
<
img
src
=
{
homeImg
}
className
=
"m-3"
/>
</
div
>
</
div
>
...
...
frontend/src/surveys/ModifySurvey.tsx
View file @
ed7a837a
...
@@ -74,7 +74,7 @@ export const ModifySurvey = ({ surveyData, callApi }: Props) => {
...
@@ -74,7 +74,7 @@ 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
(
-
1
);
navigate
(
"
/surveys
"
);
}
catch
(
error
)
{
}
catch
(
error
)
{
setLoading
(
false
);
setLoading
(
false
);
catchErrors
(
error
,
setError
);
catchErrors
(
error
,
setError
);
...
...
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