mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 23:27:54 -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>
|
||||
<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>
|
||||
|
|
Loading…
Reference in a new issue