Skip to content

Commit

Permalink
fix: Fixed Tooltip not showing on initial Render
Browse files Browse the repository at this point in the history
  • Loading branch information
noahonyejese committed Oct 1, 2024
1 parent dc79ea6 commit 6e09fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/team-communication/internal/TeamNodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const TeamNodes: FC<ITeamNodeProps> = ({
return (
<g key={`node-tooltip-${node.id}-${i}`}>
<motion.g
initial={{ opacity: 0, visibility: 'hidden' }}
animate={{
opacity: hover === node.id ? 1 : 0,
visibility: hover === node.id ? 'visible' : 'hidden',
Expand Down Expand Up @@ -209,8 +210,7 @@ const TeamNodes: FC<ITeamNodeProps> = ({
fontSize: adjustToMedia(media, [96, 104, 112]),
fontFamily: 'Apple Color Emoji',
}) / 2,
offsetY:
node.radius,
offsetY: node.radius,
})
: { y: node.y, x: node.x }),
fontSize: reactionChange
Expand Down

0 comments on commit 6e09fa7

Please sign in to comment.