fixed linting errors

This commit is contained in:
Ben Wheeler 2019-07-26 22:29:55 -04:00
parent 0be2f463c3
commit a2b96e9bac

View file

@ -19,6 +19,7 @@ const FormikRadioButtonSubComponent = ({
}) => (
<React.Fragment>
<input
checked={buttonValue === field.value}
className={classNames(
'formik-radio-button',
className
@ -26,9 +27,8 @@ const FormikRadioButtonSubComponent = ({
name={field.name}
type="radio"
value={buttonValue}
checked={buttonValue === field.value}
onChange={field.onChange}
onBlur={field.onBlur}
onBlur={field.onBlur} /* eslint-disable-line react/jsx-handler-names */
onChange={field.onChange} /* eslint-disable-line react/jsx-handler-names */
{...props}
/>
{label && (
@ -57,6 +57,7 @@ FormikRadioButtonSubComponent.propTypes = {
value: PropTypes.string
}),
label: PropTypes.string,
labelClassName: PropTypes.string,
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
};
@ -80,12 +81,14 @@ const FormikRadioButton = ({
>
{isOther && (
<FormikInput
className='formik-radio-input'
className="formik-radio-input"
id="other"
name="other"
wrapperClassName="formik-radio-input-wrapper"
/* eslint-disable react/jsx-no-bind */
onChange={event => onSetOther(event.target.value)}
onFocus={event => onSetOther(event.target.value)}
/* eslint-enable react/jsx-no-bind */
/>
)}
</Field>