From 4197ff7295775722849affdbdcbc304265e88d97 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Tue, 20 Oct 2020 10:36:57 -0230 Subject: [PATCH] Fix `contentText` PropType of `InfoTooltip` (#9652) The `InfoTooltip` component had a `contentText` prop with a PropType of `string` that was being passed a `node` as of #9614. This resulted in a PropType error. The `contentText` prop was being passed directly to `Tooltip` component as the prop `html`, which has a PropType of `node`. A string is a valid `node` type, which is why this worked before. The `contentText` prop is now of type `node`, and the error no longer appears. --- ui/app/components/ui/info-tooltip/info-tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/components/ui/info-tooltip/info-tooltip.js b/ui/app/components/ui/info-tooltip/info-tooltip.js index 42b8af75d..7e04c3822 100644 --- a/ui/app/components/ui/info-tooltip/info-tooltip.js +++ b/ui/app/components/ui/info-tooltip/info-tooltip.js @@ -36,7 +36,7 @@ export default function InfoTooltip ({ } InfoTooltip.propTypes = { - contentText: PropTypes.string, + contentText: PropTypes.node, position: PropTypes.oneOf(['top', 'left', 'bottom', 'right']), wide: PropTypes.bool, containerClassName: PropTypes.string,