From 91632069336b9fff1d50712899bdbfe6336fbdbe Mon Sep 17 00:00:00 2001 From: theborakompanioni Date: Thu, 12 Oct 2023 17:18:04 +0200 Subject: [PATCH] ui(style): fix tooltip for jars on main view --- src/components/jars/Jar.tsx | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/src/components/jars/Jar.tsx b/src/components/jars/Jar.tsx index be92d80fe..cdf487a27 100644 --- a/src/components/jars/Jar.tsx +++ b/src/components/jars/Jar.tsx @@ -1,4 +1,4 @@ -import { useState, useRef, useMemo } from 'react' +import { useState, useMemo } from 'react' import * as rb from 'react-bootstrap' import classnamesBind from 'classnames/bind' import { useSettings } from '../../context/SettingsContext' @@ -192,37 +192,28 @@ const OpenableJar = ({ onClick, }: JarProps & TooltipJarProps) => { const [jarIsOpen, setJarIsOpen] = useState(false) - - const tooltipTarget = useRef(null) const onMouseOver = () => setJarIsOpen(true) const onMouseOut = () => setJarIsOpen(false) return ( -
- + {tooltipText}} > - {(props) => {tooltipText}} - - +
+ +
+
) }