mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Update NumericInput to remove PropTypes warning (#12446)
Use oneOfType, not oneOf, to specify a union type.
This commit is contained in:
parent
8c3a22f994
commit
06fafae7b4
@ -47,7 +47,7 @@ export default function NumericInput({
|
||||
}
|
||||
|
||||
NumericInput.propTypes = {
|
||||
value: PropTypes.oneOf([PropTypes.number, PropTypes.string]),
|
||||
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||
detailText: PropTypes.string,
|
||||
onChange: PropTypes.func,
|
||||
error: PropTypes.string,
|
||||
|
Loading…
Reference in New Issue
Block a user