1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix PropType error for Chip component (#10319)

The Chip component was emitting a PropType error because it was missing
the `labelProps.children` prop. It was never supposed to be given that
prop - it was a mistake in the PropType declaration. The PropTypes have
been fixed to prevent this warning.
This commit is contained in:
Mark Stacey 2021-01-29 13:35:32 -03:30 committed by GitHub
parent 05f5deb701
commit d7d2de04bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ Chip.propTypes = {
label: PropTypes.string,
children: PropTypes.node,
labelProps: PropTypes.shape({
...omit(Typography.propTypes, ['className']),
...omit(Typography.propTypes, ['children', 'className']),
}),
leftIcon: PropTypes.node,
rightIcon: PropTypes.node,