Skip to content

Commit

Permalink
fix(tooltip): tooltip type warning due to incorrect use of oneOf
Browse files Browse the repository at this point in the history
  • Loading branch information
Coread committed Feb 25, 2021
1 parent 7dcc8f0 commit 47ebc50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/src/lib/Tooltip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Tooltip.propTypes = {
/** @prop Optional object for Popover Component props | {} */
popoverProps: PropTypes.object,
/** @prop Tooltip text | '' */
tooltip: PropTypes.oneOf([PropTypes.object, PropTypes.string]),
tooltip: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
/** @prop Set the action which triggers the Tooltip | 'MouseEnter' */
tooltipTrigger: PropTypes.oneOf(['MouseEnter', 'Click', 'Focus']),
/** @prop Set the Tooltip width | null */
Expand Down

0 comments on commit 47ebc50

Please sign in to comment.