-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Fix the multiple tooltips display in EmojiReactionBubble for context menu emojis #16336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,8 @@ import EmojiReactionBubble from './EmojiReactionBubble'; | |
| import emojis from '../../../assets/emojis'; | ||
| import AddReactionBubble from './AddReactionBubble'; | ||
| import getPreferredEmojiCode from './getPreferredEmojiCode'; | ||
| import Tooltip from '../Tooltip'; | ||
| import ReactionTooltipContent from './ReactionTooltipContent'; | ||
|
|
||
| /** | ||
| * Given an emoji object and a list of senders it will return an | ||
|
|
@@ -68,14 +70,23 @@ const ReportActionItemReactions = (props) => { | |
| }; | ||
|
|
||
| return ( | ||
| <EmojiReactionBubble | ||
| key={reaction.emoji} | ||
| count={reactionCount} | ||
| emojiName={reaction.emoji} | ||
| emojiCodes={emojiCodes} | ||
| onPress={onPress} | ||
| reactionUsers={reactionUsers} | ||
| /> | ||
| <Tooltip | ||
| renderTooltipContent={() => ( | ||
| <ReactionTooltipContent | ||
| emojiName={reaction.emoji} | ||
| emojiCodes={emojiCodes} | ||
| accountIDs={reactionUsers} | ||
| /> | ||
| )} | ||
| > | ||
| <EmojiReactionBubble | ||
| key={reaction.emoji} | ||
| count={reactionCount} | ||
| emojiCodes={emojiCodes} | ||
| onPress={onPress} | ||
| reactionUsers={reactionUsers} | ||
| /> | ||
| </Tooltip> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why we are passing
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To show the emoji name in the tooltip.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm asking why for
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Pujan92 ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ohh, it is not required for |
||
| ); | ||
| })} | ||
| {reactionsWithCount.length > 0 && <AddReactionBubble onSelectEmoji={props.toggleReaction} />} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.