diff --git a/src/components/Widgets/BooleanControl.js b/src/components/Widgets/BooleanControl.js index 8486a255..c95b655a 100644 --- a/src/components/Widgets/BooleanControl.js +++ b/src/components/Widgets/BooleanControl.js @@ -4,10 +4,10 @@ import Switch from 'react-toolbox/lib/switch'; export default class BooleanControl extends React.Component { render() { - const { value, field, forId, onChange } = this.props; + const { value, field, forID, onChange } = this.props; return ( @@ -18,6 +18,6 @@ export default class BooleanControl extends React.Component { BooleanControl.propTypes = { field: ImmutablePropTypes.map.isRequired, onChange: PropTypes.func.isRequired, - forID: PropTypes.string.isRequired, + forID: PropTypes.string, value: PropTypes.bool, }; diff --git a/src/components/Widgets/ListControl.js b/src/components/Widgets/ListControl.js index 2bcfd98c..ec19cde8 100644 --- a/src/components/Widgets/ListControl.js +++ b/src/components/Widgets/ListControl.js @@ -30,7 +30,7 @@ export default class ListControl extends Component { onChange: PropTypes.func.isRequired, value: PropTypes.node, field: PropTypes.node, - forID: PropTypes.string.isRequired, + forID: PropTypes.string, getAsset: PropTypes.func.isRequired, onAddAsset: PropTypes.func.isRequired, onRemoveAsset: PropTypes.func.isRequired, diff --git a/src/components/Widgets/NumberControl.js b/src/components/Widgets/NumberControl.js index 1044d6b0..9354fd20 100644 --- a/src/components/Widgets/NumberControl.js +++ b/src/components/Widgets/NumberControl.js @@ -13,5 +13,5 @@ export default class StringControl extends React.Component { StringControl.propTypes = { onChange: PropTypes.func.isRequired, value: PropTypes.node, - forID: PropTypes.string.isRequired, + forID: PropTypes.string, }; diff --git a/src/components/Widgets/ObjectControl.js b/src/components/Widgets/ObjectControl.js index 44419ea7..ac62fd71 100644 --- a/src/components/Widgets/ObjectControl.js +++ b/src/components/Widgets/ObjectControl.js @@ -12,7 +12,7 @@ export default class ObjectControl extends Component { getAsset: PropTypes.func.isRequired, value: PropTypes.node, field: PropTypes.object, - forID: PropTypes.string.isRequired, + forID: PropTypes.string, className: PropTypes.string, }; diff --git a/src/components/Widgets/StringControl.js b/src/components/Widgets/StringControl.js index bba23f13..cf8e72d5 100644 --- a/src/components/Widgets/StringControl.js +++ b/src/components/Widgets/StringControl.js @@ -12,6 +12,6 @@ export default class StringControl extends React.Component { StringControl.propTypes = { onChange: PropTypes.func.isRequired, - forID: PropTypes.string.isRequired, + forID: PropTypes.string, value: PropTypes.node, }; diff --git a/src/components/Widgets/TextControl.js b/src/components/Widgets/TextControl.js index 57e964a7..090f50e4 100644 --- a/src/components/Widgets/TextControl.js +++ b/src/components/Widgets/TextControl.js @@ -27,6 +27,6 @@ export default class StringControl extends React.Component { StringControl.propTypes = { onChange: PropTypes.func.isRequired, - forID: PropTypes.string.isRequired, + forID: PropTypes.string, value: PropTypes.node, };