export const SwitchField = ({ switchProps, ...props }: FormFieldProps & { switchProps: SwitchProps }) =>
<FormField {...props}>
- {input => <Switch {...switchProps} checked={input.checked} onChange={input.onChange} />}
+ {input => <Switch {...switchProps} checked={input.value} onChange={input.onChange} />}
</FormField>;