Skip to content

Commit

Permalink
feat(displayNames): fallback tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudpresser committed Jun 12, 2023
1 parent 562244c commit a0ea50d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/DisplayNames/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,16 @@ class DisplayNames extends PureComponent {
>
{this.props.shouldUseFullTitle
? this.props.fullTitle
: _.map(this.props.displayNamesWithTooltips, ({displayName, accountID}, index) => (
: _.map(this.props.displayNamesWithTooltips, ({displayName, accountID, avatar, login}, index) => (
<Fragment key={index}>
<UserDetailsTooltip
key={index}
accountID={accountID}
fallbackUserDetails={{
avatar,
login,
displayName,
}}
shiftHorizontal={() => this.getTooltipShiftX(index)}
>
{/* // We need to get the refs to all the names which will be used to correct
Expand Down

0 comments on commit a0ea50d

Please sign in to comment.