fix checkbox field

This commit is contained in:
Ildar Kamalov
2025-01-17 16:54:55 +03:00
parent bcf5fb2521
commit b4aa411826
6 changed files with 18 additions and 58 deletions

View File

@@ -273,13 +273,11 @@ const Form = ({ initialValues, onSubmit }: FormProps) => {
<Controller
name="use_private_ptr_resolvers"
control={control}
render={({ field: { name, value, onChange } }) => (
render={({ field }) => (
<Checkbox
name={name}
{...field}
title={t('use_private_ptr_resolvers_title')}
subtitle={t('use_private_ptr_resolvers_desc')}
value={value}
onChange={(value) => onChange(value)}
disabled={processingSetConfig}
/>
)}
@@ -295,13 +293,11 @@ const Form = ({ initialValues, onSubmit }: FormProps) => {
<Controller
name="resolve_clients"
control={control}
render={({ field: { name, value, onChange } }) => (
render={({ field }) => (
<Checkbox
name={name}
{...field}
title={t('resolve_clients_title')}
subtitle={t('resolve_clients_desc')}
value={value}
onChange={(value) => onChange(value)}
disabled={processingSetConfig}
/>
)}