Allow null content for ToolTip content

This commit is contained in:
dannyrb 2020-06-16 00:44:33 -04:00
parent c264b32e7d
commit 27e62949ce

View File

@ -87,7 +87,8 @@ Tooltip.defaultProps = {
};
Tooltip.propTypes = {
content: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
// Allow null
content: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
position: PropTypes.oneOf([
'bottom',
'bottom-left',