Linter fix

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-01-19 13:00:57 +03:00
1 parent e4a6b4f65d
commit 2dd69cbb15
1 file changed
+4 -4
@@ -36,23 +36,23 @@ const NonInjectedHotbarSelector = observer(({ hotbar, hotbarManager, openCommand
function clearTimer() {
clearTimeout(tooltipTimeout.current);
};
}
function onTooltipShow() {
setTooltipVisible(true);
clearTimer();
tooltipTimeout.current = setTimeout(() => setTooltipVisible(false), 1500);
};
}
function onArrowClick(switchTo: () => void) {
onTooltipShow();
switchTo();
};
}
function onMouseEvent(event: React.MouseEvent) {
clearTimer();
setTooltipVisible(event.type == "mouseenter");
};
}
return (
<div className={styles.HotbarSelector}>