PropTypes as function call (#3731)
This commit is contained in:
parent
e2bb8ef6d1
commit
be90245ecb
@ -33,7 +33,7 @@ export default class ConfirmDialog extends Component {
|
||||
iconDeny: PropTypes.node,
|
||||
labelConfirm: PropTypes.string,
|
||||
labelDeny: PropTypes.string,
|
||||
title: nodeOrStringProptype.isRequired,
|
||||
title: nodeOrStringProptype().isRequired,
|
||||
visible: PropTypes.bool.isRequired,
|
||||
onConfirm: PropTypes.func.isRequired,
|
||||
onDeny: PropTypes.func.isRequired
|
||||
|
@ -23,8 +23,8 @@ import styles from './title.css';
|
||||
export default class Title extends Component {
|
||||
static propTypes = {
|
||||
className: PropTypes.string,
|
||||
title: nodeOrStringProptype,
|
||||
byline: nodeOrStringProptype
|
||||
title: nodeOrStringProptype(),
|
||||
byline: nodeOrStringProptype()
|
||||
}
|
||||
|
||||
state = {
|
||||
|
@ -30,7 +30,7 @@ export default class Container extends Component {
|
||||
compact: PropTypes.bool,
|
||||
light: PropTypes.bool,
|
||||
style: PropTypes.object,
|
||||
title: nodeOrStringProptype
|
||||
title: nodeOrStringProptype()
|
||||
}
|
||||
|
||||
render () {
|
||||
|
@ -35,7 +35,7 @@ export default class InputInline extends Component {
|
||||
value: PropTypes.oneOfType([
|
||||
PropTypes.number, PropTypes.string
|
||||
]),
|
||||
static: nodeOrStringProptype
|
||||
static: nodeOrStringProptype()
|
||||
}
|
||||
|
||||
state = {
|
||||
|
@ -28,7 +28,7 @@ export default class Title extends Component {
|
||||
current: PropTypes.number,
|
||||
steps: PropTypes.array,
|
||||
waiting: PropTypes.array,
|
||||
title: nodeOrStringProptype
|
||||
title: nodeOrStringProptype()
|
||||
}
|
||||
|
||||
render () {
|
||||
|
@ -44,7 +44,7 @@ class Modal extends Component {
|
||||
current: PropTypes.number,
|
||||
waiting: PropTypes.array,
|
||||
steps: PropTypes.array,
|
||||
title: nodeOrStringProptype,
|
||||
title: nodeOrStringProptype(),
|
||||
visible: PropTypes.bool.isRequired,
|
||||
settings: PropTypes.object.isRequired
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user