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

@@ -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 () {