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.
feature/default_network_editable
Mark Stacey 4 years ago committed by GitHub
parent 05f5deb701
commit d7d2de04bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/app/components/ui/chip/chip.js

@ -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…
Cancel
Save