diff --git a/apps/dashboard/components/BlablaFormEditor/FieldsInput.tsx b/apps/dashboard/components/BlablaFormEditor/FieldsInput.tsx index f2d2f8379..5f01d179e 100644 --- a/apps/dashboard/components/BlablaFormEditor/FieldsInput.tsx +++ b/apps/dashboard/components/BlablaFormEditor/FieldsInput.tsx @@ -30,9 +30,9 @@ import { import { CreateFormSchema } from '@chaindesk/lib/types/dtos'; import Input from '@chaindesk/ui/Input'; +import { FieldType } from '@chaindesk/ui/types/form'; import { SortableList } from '../dnd/SortableList'; -import { FieldType } from '../TraditionalForm'; import { forceSubmit } from './utils'; @@ -45,6 +45,7 @@ const fieldTypes = [ 'email', 'phoneNumber', 'text', + 'number', 'textArea', 'select', 'file', @@ -313,69 +314,6 @@ function FieldsInput({ type = 'traditional' }: Props) { )} /> )} - {type == formType.conversational && - fieldsValues?.map((field, index) => ( -
- - ( - - )} - > - { - remove(index); - forceSubmit(); - }} - > - - - } - /> - - - {fieldsValues?.[index]?.type === 'multiple_choice' && ( - - - actionLabel="Add Choice" - name={`draftConfig.fields.${index}.choices` as any} - /> - - )} -
- ))}