Move defaultProps outside of class definition

pull/10616/head
Jared Scheib 2017-09-07 11:22:16 -07:00
parent 4873627441
commit 7f1dd2b780
1 changed files with 6 additions and 6 deletions

View File

@ -22,12 +22,6 @@ class FillQuery extends Component {
}
}
static defaultProps = {
size: 'sm',
theme: 'blue',
value: NULL_STRING,
}
handleDropdown = item => {
if (item.text === NUMBER) {
this.setState({selected: item}, () => {
@ -110,6 +104,12 @@ class FillQuery extends Component {
const {func, string} = PropTypes
FillQuery.defaultProps = {
size: 'sm',
theme: 'blue',
value: NULL_STRING,
}
FillQuery.propTypes = {
onSelection: func.isRequired,
value: string,