Skip to content

Commit

Permalink
fix(tooltip): convert tooltip prop type from string to object (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
akoushke authored Dec 8, 2020
1 parent 408a0c2 commit 7ced608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/src/lib/Tooltip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ Tooltip.propTypes = {
className: PropTypes.string,
/** @prop Optional object for Popover Component props | {} */
popoverProps: PropTypes.object,
/** @prop Tooltip text | '' */
tooltip: PropTypes.string,
/** @prop Tooltip text | '' */
tooltip: PropTypes.oneOf([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 7ced608

Please sign in to comment.