+ client: 2154 Make renderCheckboxField a controlled input

This commit is contained in:
ArtemBaskal
2020-10-05 14:53:20 +03:00
parent 8856dd6e4c
commit 0ae00932e9
7 changed files with 38 additions and 30 deletions

View File

@@ -7,7 +7,7 @@ import flow from 'lodash/flow';
import {
renderInputField,
renderCheckboxField,
CheckboxField,
renderRadioField,
toNumber,
} from '../../../helpers/form';
@@ -101,7 +101,7 @@ let Form = (props) => {
<Field
name="enabled"
type="checkbox"
component={renderCheckboxField}
component={CheckboxField}
placeholder={t('encryption_enable')}
onChange={handleChange}
/>
@@ -138,7 +138,7 @@ let Form = (props) => {
<Field
name="force_https"
type="checkbox"
component={renderCheckboxField}
component={CheckboxField}
placeholder={t('encryption_redirect')}
onChange={handleChange}
disabled={!isEnabled}