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