Skip to content

Commit

Permalink
Merge pull request #115 from abusix/refactor-tooltip-component-structure
Browse files Browse the repository at this point in the history
fix(components): use fragment for tooltip return value
  • Loading branch information
mnlfischer authored Feb 27, 2024
2 parents b2f879e + 336947a commit ae706af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const Tooltip = ({
);

return (
<div>
<>
<div
ref={(el) => el && setReferenceElement(el)}
onMouseEnter={() => !isControlled && setShow(true)}
Expand All @@ -79,6 +79,6 @@ export const Tooltip = ({
) : (
renderTooltipContent()
)}
</div>
</>
);
};

0 comments on commit ae706af

Please sign in to comment.