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:
parent
05f5deb701
commit
d7d2de04bd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user