Skip to content

Commit

Permalink
Added shift horizontal prop to user details tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
alitoshmatov committed Jul 14, 2023
1 parent 405fcdf commit f4a6f68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/UserDetailsTooltip/index.web.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function UserDetailsTooltip(props) {

return (
<Tooltip
shiftHorizontal={props.shiftHorizontal}
renderTooltipContent={renderTooltipContent}
renderTooltipContentKey={[userDisplayName, userLogin]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ const propTypes = {

/** The accountID of the copilot who took this action on behalf of the user */
delegateAccountID: PropTypes.number,

/** Any additional amount to manually adjust the horizontal position of the tooltip.
A positive value shifts the tooltip to the right, and a negative value shifts it to the left. */
shiftHorizontal: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
};

const defaultProps = {
Expand All @@ -33,6 +37,7 @@ const defaultProps = {
personalDetailsList: {},
delegateAccountID: 0,
icon: undefined,
shiftHorizontal: 0,
};

export {propTypes, defaultProps};

0 comments on commit f4a6f68

Please sign in to comment.