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
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) => {
return
(
<
div
className
=
"m-5"
>
{
question
.
content
.
choices
.
map
((
choice
:
any
)
=>
(
<
div
key
=
{
choice
.
t
ex
t
}
className
=
""
>
{
question
.
content
.
choices
.
map
((
choice
:
any
,
index
:
number
)
=>
(
<
div
key
=
{
ind
ex
}
className
=
""
>
<
span
className
=
"font-bold"
>
{
choice
.
text
}
</
span
>
<
span
className
=
"ml-3"
>
-
{
result
[
choice
.
text
]
?
result
[
choice
.
text
]
:
0
}
...
...
frontend/src/forms/RDate.tsx
View file @
afb55513
...
...
@@ -8,8 +8,8 @@ type Props = {
export
const
RDate
=
({
question
}:
Props
)
=>
{
return
(
<
div
className
=
"m-5"
>
{
question
.
answers
.
map
((
answer
:
any
)
=>
(
<
div
key
=
{
answer
}
className
=
"font-bold"
>
{
question
.
answers
.
map
((
answer
:
any
,
index
:
number
)
=>
(
<
div
key
=
{
index
}
className
=
"font-bold"
>
{
answer
}
</
div
>
))
}
...
...
frontend/src/forms/RRating.tsx
View file @
afb55513
...
...
@@ -14,8 +14,8 @@ export const RRating = ({ question }: Props) => {
return
(
<
div
className
=
"m-5"
>
<
div
>
{
question
.
content
.
minRateDescription
}
</
div
>
{
question
.
content
.
choices
.
map
((
choice
:
any
)
=>
(
<
div
key
=
{
choice
.
t
ex
t
}
className
=
""
>
{
question
.
content
.
choices
.
map
((
choice
:
any
,
index
:
number
)
=>
(
<
div
key
=
{
ind
ex
}
className
=
""
>
<
span
className
=
"font-bold"
>
{
choice
.
text
}
</
span
>
<
span
className
=
"ml-3"
>
-
{
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