fix forms

This commit is contained in:
Ildar Kamalov
2025-01-24 16:42:30 +03:00
parent f3f38e1a57
commit f78dc10c2a
16 changed files with 144 additions and 73 deletions

View File

@@ -70,7 +70,6 @@ export const Form = ({
handleSubmit,
reset,
control,
setValue,
formState: { isSubmitting, isValid },
} = methods;
@@ -116,6 +115,7 @@ export const Form = ({
<Input
{...field}
type="text"
data-testid="clients_name"
placeholder={t('form_client_name')}
error={fieldState.error?.message}
onBlur={(event) => {
@@ -155,13 +155,11 @@ export const Form = ({
render={({ field }) => (
<Select
{...field}
data-testid="clients_tags"
options={tagsOptions}
className="basic-multi-select"
classNamePrefix="select"
isMulti
onChange={(selectedOptions) => {
setValue('tags', selectedOptions);
}}
/>
)}
/>