PropTypes as function call (#3731)
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user