Fix tooltip performances (#9930)

Rendering the Tooltip is creating performance issues on the whole app.

In this PR we only render the tooltip on hover
This commit is contained in:
Charles Bochet
2025-01-30 12:37:56 +01:00
committed by GitHub
parent a039987549
commit ae4bf8d929
2 changed files with 29 additions and 20 deletions

View File

@ -50,6 +50,7 @@ export type AppTooltipProps = {
positionStrategy?: PositionStrategy;
clickable?: boolean;
width?: string;
isOpen?: boolean;
};
export const AppTooltip = ({
@ -65,6 +66,7 @@ export const AppTooltip = ({
children,
clickable,
width,
isOpen,
}: AppTooltipProps) => {
const delayInMs =
delay === TooltipDelay.noDelay
@ -89,6 +91,7 @@ export const AppTooltip = ({
children,
clickable,
width,
isOpen,
}}
/>
);