From d7d2de04bd6631d4ac6887226babaf6574dd46bb Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Fri, 29 Jan 2021 13:35:32 -0330 Subject: [PATCH] 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. --- ui/app/components/ui/chip/chip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/components/ui/chip/chip.js b/ui/app/components/ui/chip/chip.js index 1fa3faf3d..691df480b 100644 --- a/ui/app/components/ui/chip/chip.js +++ b/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,