diff --git a/clients/core/src/Application/MultiSelectForm/CheckboxQuestion.tsx b/clients/core/src/Application/MultiSelectForm/CheckboxQuestion.tsx index 3ced6c88..4e958b0b 100644 --- a/clients/core/src/Application/MultiSelectForm/CheckboxQuestion.tsx +++ b/clients/core/src/Application/MultiSelectForm/CheckboxQuestion.tsx @@ -1,8 +1,9 @@ import React from 'react' import { UseFormReturn } from 'react-hook-form' -import { FormDescription, FormLabel } from '@/components/ui/form' +import { FormLabel } from '@/components/ui/form' import { Checkbox } from '@/components/ui/checkbox' import { ApplicationQuestionMultiSelect } from '@/interfaces/application_question_multi_select' +import { FormDescriptionHTML } from '../components/FormDescriptionHTML' interface CheckboxQuestionProps { form: UseFormReturn<{ answers: string[] }> @@ -28,7 +29,7 @@ export const CheckboxQuestion: React.FC = ({ {question.title} {question.is_required && *} - {question.description && {question.description}} + {question.description && } ) diff --git a/clients/core/src/Application/MultiSelectForm/MultiSelectQuestion.tsx b/clients/core/src/Application/MultiSelectForm/MultiSelectQuestion.tsx index a81cd244..9ff31e97 100644 --- a/clients/core/src/Application/MultiSelectForm/MultiSelectQuestion.tsx +++ b/clients/core/src/Application/MultiSelectForm/MultiSelectQuestion.tsx @@ -1,6 +1,6 @@ import React from 'react' import { UseFormReturn } from 'react-hook-form' -import { FormDescription, FormLabel } from '@/components/ui/form' +import { FormLabel } from '@/components/ui/form' import { MultiSelect } from '@/components/MultiSelect' import { ApplicationQuestionMultiSelect } from '@/interfaces/application_question_multi_select' import { @@ -10,6 +10,7 @@ import { SelectTrigger, SelectValue, } from '@/components/ui/select' +import { FormDescriptionHTML } from '../components/FormDescriptionHTML' interface MultiSelectQuestionProps { form: UseFormReturn<{ answers: string[] }> @@ -35,7 +36,7 @@ export const MultiSelectQuestion: React.FC = ({ {question.title} {question.min_select > 0 && *} - {question.description && {question.description}} + {question.description && } {question.max_select > 1 ? ( * : ''} - {question.description && ( - {question.description} - )} + {question.description && }
{isTextArea ? (