From 9e3ba17e546bd37fb33daebfae5aa207b8cb353f Mon Sep 17 00:00:00 2001 From: luizakp Date: Fri, 26 Apr 2024 15:30:02 -0300 Subject: [PATCH] chore: remove investigation select search --- .../fields/selects/SearchableSelectField.tsx | 128 +++++++++--------- 1 file changed, 62 insertions(+), 66 deletions(-) diff --git a/src/components/FormBuilder/fields/selects/SearchableSelectField.tsx b/src/components/FormBuilder/fields/selects/SearchableSelectField.tsx index 995748b..bf679c7 100644 --- a/src/components/FormBuilder/fields/selects/SearchableSelectField.tsx +++ b/src/components/FormBuilder/fields/selects/SearchableSelectField.tsx @@ -27,70 +27,66 @@ import { withConditional } from "../../fields"; import { SelectFieldProps } from "./SelectField"; export const SearchableSelectField = withConditional( - ({ form, field }) => { - // eslint-disable-next-line no-console - console.log(field); - return ( - ( - - - {field.label} - {field.description} - - - - - - - - - - No options found. - - {field.options?.map((option) => ( - { - form.setValue(field.name, option.value); - }} - > - - {option.label} - - ))} - - - - - - - )} - /> - ); - } + ({ form, field }) => ( + ( + + + {field.label} + {field.description} + + + + + + + + + + No options found. + + {field.options?.map((option) => ( + { + form.setValue(field.name, option.value); + }} + > + + {option.label} + + ))} + + + + + + + )} + /> + ) );