Move defaultProps outside of class definition
parent
4873627441
commit
7f1dd2b780
|
@ -22,12 +22,6 @@ class FillQuery extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static defaultProps = {
|
|
||||||
size: 'sm',
|
|
||||||
theme: 'blue',
|
|
||||||
value: NULL_STRING,
|
|
||||||
}
|
|
||||||
|
|
||||||
handleDropdown = item => {
|
handleDropdown = item => {
|
||||||
if (item.text === NUMBER) {
|
if (item.text === NUMBER) {
|
||||||
this.setState({selected: item}, () => {
|
this.setState({selected: item}, () => {
|
||||||
|
@ -110,6 +104,12 @@ class FillQuery extends Component {
|
||||||
|
|
||||||
const {func, string} = PropTypes
|
const {func, string} = PropTypes
|
||||||
|
|
||||||
|
FillQuery.defaultProps = {
|
||||||
|
size: 'sm',
|
||||||
|
theme: 'blue',
|
||||||
|
value: NULL_STRING,
|
||||||
|
}
|
||||||
|
|
||||||
FillQuery.propTypes = {
|
FillQuery.propTypes = {
|
||||||
onSelection: func.isRequired,
|
onSelection: func.isRequired,
|
||||||
value: string,
|
value: string,
|
||||||
|
|
Loading…
Reference in New Issue