Removed isRequired from label incase null.

This commit is contained in:
orangemug 2020-06-29 16:18:04 +01:00
parent a46c834874
commit 3ad487dce7

View file

@ -12,7 +12,7 @@ export default class Block extends React.Component {
label: PropTypes.oneOfType([ label: PropTypes.oneOfType([
PropTypes.string, PropTypes.string,
PropTypes.element, PropTypes.element,
]).isRequired, ]),
action: PropTypes.element, action: PropTypes.element,
children: PropTypes.node.isRequired, children: PropTypes.node.isRequired,
style: PropTypes.object, style: PropTypes.object,