'name' is not a required property of <ColorField />

This commit is contained in:
orangemug 2020-01-30 09:18:23 +00:00
parent 63ed8c1de3
commit 0f22eb83d3

View file

@ -13,7 +13,7 @@ function formatColor(color) {
class ColorField extends React.Component { class ColorField extends React.Component {
static propTypes = { static propTypes = {
onChange: PropTypes.func.isRequired, onChange: PropTypes.func.isRequired,
name: PropTypes.string.isRequired, name: PropTypes.string,
value: PropTypes.string, value: PropTypes.string,
doc: PropTypes.string, doc: PropTypes.string,
style: PropTypes.object, style: PropTypes.object,