1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

Update NumericInput to remove PropTypes warning (#12446)

Use oneOfType, not oneOf, to specify a union type.
This commit is contained in:
Elliot Winkler 2021-10-25 10:19:50 -06:00 committed by GitHub
parent 8c3a22f994
commit 06fafae7b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,