fix select PropTypes
parent
dce6d138e7
commit
28f63f538b
|
@ -30,15 +30,16 @@ const AbstractSelectProps = {
|
||||||
showArrow: PropTypes.bool,
|
showArrow: PropTypes.bool,
|
||||||
}
|
}
|
||||||
const Value = PropTypes.shape({
|
const Value = PropTypes.shape({
|
||||||
key: String,
|
key: PropTypes.string,
|
||||||
}).loose
|
}).loose
|
||||||
|
|
||||||
const SelectValue = PropTypes.oneOfType([
|
const SelectValue = PropTypes.oneOfType([
|
||||||
PropTypes.string,
|
PropTypes.string,
|
||||||
|
PropTypes.number,
|
||||||
PropTypes.arrayOf(PropTypes.oneOfType([
|
PropTypes.arrayOf(PropTypes.oneOfType([
|
||||||
Value,
|
Value,
|
||||||
String,
|
PropTypes.string,
|
||||||
|
PropTypes.number,
|
||||||
])),
|
])),
|
||||||
Value,
|
Value,
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue