fix: follow mode collaborator status indicator (#7459)

This commit is contained in:
David Luzar
2023-12-18 16:14:25 +01:00
committed by GitHub
parent 2a0fe2584e
commit 0808532b49
8 changed files with 75 additions and 34 deletions

View File

@@ -80,6 +80,7 @@ type TooltipProps = {
label: string;
long?: boolean;
style?: React.CSSProperties;
disabled?: boolean;
};
export const Tooltip = ({
@@ -87,11 +88,15 @@ export const Tooltip = ({
label,
long = false,
style,
disabled,
}: TooltipProps) => {
useEffect(() => {
return () =>
getTooltipDiv().classList.remove("excalidraw-tooltip--visible");
}, []);
if (disabled) {
return null;
}
return (
<div
className="excalidraw-tooltip-wrapper"