Don't pass props.dispatch to <input>
This commit is contained in:
parent
0529817a6d
commit
fd2d36e3c3
|
@ -56,7 +56,7 @@ LabelInputContainer.propTypes = {
|
||||||
children: PropTypes.node,
|
children: PropTypes.node,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const LabelInput = ({ label, ...props }) => (
|
export const LabelInput = ({ label, dispatch, ...props }) => (
|
||||||
<LabelInputContainer label={label}>
|
<LabelInputContainer label={label}>
|
||||||
<input {...props} />
|
<input {...props} />
|
||||||
</LabelInputContainer>
|
</LabelInputContainer>
|
||||||
|
@ -64,6 +64,7 @@ export const LabelInput = ({ label, ...props }) => (
|
||||||
|
|
||||||
LabelInput.propTypes = {
|
LabelInput.propTypes = {
|
||||||
label: FormPropTypes.label.isRequired,
|
label: FormPropTypes.label.isRequired,
|
||||||
|
dispatch: PropTypes.func,
|
||||||
};
|
};
|
||||||
|
|
||||||
export class SimpleInput extends ImmutablePureComponent {
|
export class SimpleInput extends ImmutablePureComponent {
|
||||||
|
@ -159,6 +160,7 @@ export class RadioItem extends ImmutablePureComponent {
|
||||||
value: PropTypes.string.isRequired,
|
value: PropTypes.string.isRequired,
|
||||||
checked: PropTypes.bool.isRequired,
|
checked: PropTypes.bool.isRequired,
|
||||||
onChange: PropTypes.func,
|
onChange: PropTypes.func,
|
||||||
|
dispatch: PropTypes.func,
|
||||||
}
|
}
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
|
@ -166,7 +168,7 @@ export class RadioItem extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { label, hint, ...props } = this.props;
|
const { label, hint, dispatch, ...props } = this.props;
|
||||||
const id = uuidv4();
|
const id = uuidv4();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue