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
afb55513
Commit
afb55513
authored
Jan 02, 2023
by
jang dong hyeok
Browse files
설문응답들의 key를 index로 통일
parent
bff0b7f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
frontend/src/forms/RCheckbox.tsx
View file @
afb55513
...
@@ -14,8 +14,8 @@ export const RCheckbox = ({ question }: Props) => {
...
@@ -14,8 +14,8 @@ export const RCheckbox = ({ question }: Props) => {
return
(
return
(
<
div
className
=
"m-5"
>
<
div
className
=
"m-5"
>
{
question
.
content
.
choices
.
map
((
choice
:
any
)
=>
(
{
question
.
content
.
choices
.
map
((
choice
:
any
,
index
:
number
)
=>
(
<
div
key
=
{
choice
.
t
ex
t
}
className
=
""
>
<
div
key
=
{
ind
ex
}
className
=
""
>
<
span
className
=
"font-bold"
>
{
choice
.
text
}
</
span
>
<
span
className
=
"font-bold"
>
{
choice
.
text
}
</
span
>
<
span
className
=
"ml-3"
>
<
span
className
=
"ml-3"
>
-
{
result
[
choice
.
text
]
?
result
[
choice
.
text
]
:
0
}
-
{
result
[
choice
.
text
]
?
result
[
choice
.
text
]
:
0
}
...
...
frontend/src/forms/RDate.tsx
View file @
afb55513
...
@@ -8,8 +8,8 @@ type Props = {
...
@@ -8,8 +8,8 @@ type Props = {
export
const
RDate
=
({
question
}:
Props
)
=>
{
export
const
RDate
=
({
question
}:
Props
)
=>
{
return
(
return
(
<
div
className
=
"m-5"
>
<
div
className
=
"m-5"
>
{
question
.
answers
.
map
((
answer
:
any
)
=>
(
{
question
.
answers
.
map
((
answer
:
any
,
index
:
number
)
=>
(
<
div
key
=
{
answer
}
className
=
"font-bold"
>
<
div
key
=
{
index
}
className
=
"font-bold"
>
{
answer
}
{
answer
}
</
div
>
</
div
>
))
}
))
}
...
...
frontend/src/forms/RRating.tsx
View file @
afb55513
...
@@ -14,8 +14,8 @@ export const RRating = ({ question }: Props) => {
...
@@ -14,8 +14,8 @@ export const RRating = ({ question }: Props) => {
return
(
return
(
<
div
className
=
"m-5"
>
<
div
className
=
"m-5"
>
<
div
>
{
question
.
content
.
minRateDescription
}
</
div
>
<
div
>
{
question
.
content
.
minRateDescription
}
</
div
>
{
question
.
content
.
choices
.
map
((
choice
:
any
)
=>
(
{
question
.
content
.
choices
.
map
((
choice
:
any
,
index
:
number
)
=>
(
<
div
key
=
{
choice
.
t
ex
t
}
className
=
""
>
<
div
key
=
{
ind
ex
}
className
=
""
>
<
span
className
=
"font-bold"
>
{
choice
.
text
}
</
span
>
<
span
className
=
"font-bold"
>
{
choice
.
text
}
</
span
>
<
span
className
=
"ml-3"
>
<
span
className
=
"ml-3"
>
-
{
result
[
choice
.
text
]
?
result
[
choice
.
text
]
:
0
}
-
{
result
[
choice
.
text
]
?
result
[
choice
.
text
]
:
0
}
...
...
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