diff --git a/frontend/src/forms/ACheckbox.tsx b/frontend/src/forms/ACheckbox.tsx index ced8ec9821e45937270e3f0bd7d02922c22173ef..b3020adc870363df161b45e470ef76e8c07d75da 100644 --- a/frontend/src/forms/ACheckbox.tsx +++ b/frontend/src/forms/ACheckbox.tsx @@ -49,7 +49,7 @@ export const ACheckbox = ({ // console.log("content:", content); return ( -
+
{element.content.choices.map((choice) => (
- +
))}
diff --git a/frontend/src/forms/ARadio.tsx b/frontend/src/forms/ARadio.tsx index c2d7f5194012d384a628106ae5758a825c9f5d70..7cb1895211e0b91c81dde2f14ba65d0ae11d41b9 100644 --- a/frontend/src/forms/ARadio.tsx +++ b/frontend/src/forms/ARadio.tsx @@ -16,7 +16,7 @@ export const ARadio = ({ element, answer: answerQuestion }: IAnswerProps) => { console.log(answerQuestion); }; return ( -
+
{element.content.choices.map((choice) => (
{ onChange={handleChange} value={choice.text} > -
diff --git a/frontend/src/surveys/AQuestion.tsx b/frontend/src/surveys/AQuestion.tsx index 86586063fa90e2e6f6f3ebda8175797f859b5a8c..ab3757d4aa3edbf3fda2c1d4e2067a12e5fa6460 100644 --- a/frontend/src/surveys/AQuestion.tsx +++ b/frontend/src/surveys/AQuestion.tsx @@ -9,16 +9,18 @@ type Props = { export const AQuestion = ({ question, answer }: Props) => { return ( -
-
-
{question.title}
+
+
{question.isRequired ? ( -
* 필수질문
+
* 필수질문
) : ( <> )} +
{question.title}
+
+
+ {question.comment}
-
{question.comment}
{getAnswerElementByType(question, answer)}
); diff --git a/frontend/src/surveys/AnswerSurvey.tsx b/frontend/src/surveys/AnswerSurvey.tsx index 4b0b7fbdcf51ec0e15c3df7512665af8525eb631..46cdfe3a7af755a0a7fbe8b7e842c06010c21d7d 100644 --- a/frontend/src/surveys/AnswerSurvey.tsx +++ b/frontend/src/surveys/AnswerSurvey.tsx @@ -114,8 +114,12 @@ export const AnswerSurvey = () => {
-

{survey.title}

-

{survey.comment}

+

+ {survey.title} +

+

+ {survey.comment} +

{answers.map((answer) => { return (