mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
fixed linting errors
This commit is contained in:
parent
0be2f463c3
commit
a2b96e9bac
1 changed files with 7 additions and 4 deletions
|
@ -19,6 +19,7 @@ const FormikRadioButtonSubComponent = ({
|
||||||
}) => (
|
}) => (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<input
|
<input
|
||||||
|
checked={buttonValue === field.value}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'formik-radio-button',
|
'formik-radio-button',
|
||||||
className
|
className
|
||||||
|
@ -26,9 +27,8 @@ const FormikRadioButtonSubComponent = ({
|
||||||
name={field.name}
|
name={field.name}
|
||||||
type="radio"
|
type="radio"
|
||||||
value={buttonValue}
|
value={buttonValue}
|
||||||
checked={buttonValue === field.value}
|
onBlur={field.onBlur} /* eslint-disable-line react/jsx-handler-names */
|
||||||
onChange={field.onChange}
|
onChange={field.onChange} /* eslint-disable-line react/jsx-handler-names */
|
||||||
onBlur={field.onBlur}
|
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
{label && (
|
{label && (
|
||||||
|
@ -57,6 +57,7 @@ FormikRadioButtonSubComponent.propTypes = {
|
||||||
value: PropTypes.string
|
value: PropTypes.string
|
||||||
}),
|
}),
|
||||||
label: PropTypes.string,
|
label: PropTypes.string,
|
||||||
|
labelClassName: PropTypes.string,
|
||||||
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -80,12 +81,14 @@ const FormikRadioButton = ({
|
||||||
>
|
>
|
||||||
{isOther && (
|
{isOther && (
|
||||||
<FormikInput
|
<FormikInput
|
||||||
className='formik-radio-input'
|
className="formik-radio-input"
|
||||||
id="other"
|
id="other"
|
||||||
name="other"
|
name="other"
|
||||||
wrapperClassName="formik-radio-input-wrapper"
|
wrapperClassName="formik-radio-input-wrapper"
|
||||||
|
/* eslint-disable react/jsx-no-bind */
|
||||||
onChange={event => onSetOther(event.target.value)}
|
onChange={event => onSetOther(event.target.value)}
|
||||||
onFocus={event => onSetOther(event.target.value)}
|
onFocus={event => onSetOther(event.target.value)}
|
||||||
|
/* eslint-enable react/jsx-no-bind */
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Field>
|
</Field>
|
||||||
|
|
Loading…
Reference in a new issue