Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Sep 15, 2020
1 parent ae18fc3 commit 942be29
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ export const TooltipWrapper: React.FunctionComponent<TooltipWrapperProps> = ({
}) => {
return (
<>
{condition && (
{condition ? (
<EuiToolTip content={tooltipContent} delay="long">
<>{children}</>
</EuiToolTip>
) : (
children
)}
{!condition && children}
</>
);
};

0 comments on commit 942be29

Please sign in to comment.