PropTypes as function call (#3731)

This commit is contained in:
Jaco Greeff 2016-12-07 10:46:46 +01:00 committed by GitHub
parent e2bb8ef6d1
commit be90245ecb
6 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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 = {

View File

@ -30,7 +30,7 @@ export default class Container extends Component {
compact: PropTypes.bool,
light: PropTypes.bool,
style: PropTypes.object,
title: nodeOrStringProptype
title: nodeOrStringProptype()
}
render () {

View File

@ -35,7 +35,7 @@ export default class InputInline extends Component {
value: PropTypes.oneOfType([
PropTypes.number, PropTypes.string
]),
static: nodeOrStringProptype
static: nodeOrStringProptype()
}
state = {

View File

@ -28,7 +28,7 @@ export default class Title extends Component {
current: PropTypes.number,
steps: PropTypes.array,
waiting: PropTypes.array,
title: nodeOrStringProptype
title: nodeOrStringProptype()
}
render () {

View File

@ -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
}