diff --git a/src/components/VolunteerTab/FormAnswersView.js b/src/components/VolunteerTab/FormAnswersView.js index 6758f0ff..9e0fc62b 100644 --- a/src/components/VolunteerTab/FormAnswersView.js +++ b/src/components/VolunteerTab/FormAnswersView.js @@ -23,41 +23,49 @@ export default class FromAnswersView extends Component { return (
{this.props.answers && this.props.answers.map((question, index) => - -
- {question.questionType === 'text' && ( - - {question.question} - - - )} - {question.questionType === 'textarea' && ( - - {question.question} - - - )} - {question.questionType === 'checkbox' && ( - - {question.question} - - )} - {question.questionType === 'radio' && ( - - {question.question} - - - )} - {question.questionType === 'checkboxes' && ( - - {question.question} - - - )} -
-
+ this._render_question(question, index, rtl) )}
) } -} \ No newline at end of file + + _render_question(question, index, rtl) { + const componentType = (question.answer.length > 60)? "textarea":"input"; + + return ( + +
+ {question.questionType === 'text' && ( + + {question.question} + + + )} + {question.questionType === 'textarea' && ( + + {question.question} + + + )} + {question.questionType === 'checkbox' && ( + + {question.question} + + )} + {question.questionType === 'radio' && ( + + {question.question} + + + )} + {question.questionType === 'checkboxes' && ( + + {question.question} + + + )} +
+
+ ) + } +}