use react prop-types module

This commit is contained in:
Mathias Rasmussen
2018-09-27 00:51:20 +02:00
parent ba5ccdb5cb
commit 0d8e9792ff
4 changed files with 19 additions and 14 deletions

View File

@@ -1,13 +1,14 @@
const React = require('react')
const PropTypes = require('prop-types')
const RaisedButton = require('material-ui/RaisedButton').default
class ShowMore extends React.Component {
static get propTypes () {
return {
defaultExpanded: React.PropTypes.bool,
hideLabel: React.PropTypes.string,
showLabel: React.PropTypes.string
defaultExpanded: PropTypes.bool,
hideLabel: PropTypes.string,
showLabel: PropTypes.string
}
}