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

@ -36,7 +36,7 @@ export default function InfoTooltip ({
} }
InfoTooltip.propTypes = { InfoTooltip.propTypes = {
contentText: PropTypes.string, contentText: PropTypes.node,
position: PropTypes.oneOf(['top', 'left', 'bottom', 'right']), position: PropTypes.oneOf(['top', 'left', 'bottom', 'right']),
wide: PropTypes.bool, wide: PropTypes.bool,
containerClassName: PropTypes.string, containerClassName: PropTypes.string,

Loading…
Cancel
Save