summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAnderson Shindy Oki <[email protected]>2024-12-04 09:53:28 +0900
committerAnderson Shindy Oki <[email protected]>2024-12-04 09:53:28 +0900
commit1cc5c428ca9d5315f5fb02af69161d6723754fb6 (patch)
treec992cbba4bb92ecc2a0c3a9e915188b47ef50a30
parent8dc3e5d7064fc3b3c5d93fabc3fdb03e70cf2e75 (diff)
downloadbazarr-1cc5c428ca9d5315f5fb02af69161d6723754fb6.tar.gz
bazarr-1cc5c428ca9d5315f5fb02af69161d6723754fb6.zip
no log: Remove provider tooltip unused hook and ref
-rw-r--r--frontend/src/components/TextPopover.tsx12
1 files changed, 2 insertions, 10 deletions
diff --git a/frontend/src/components/TextPopover.tsx b/frontend/src/components/TextPopover.tsx
index 03dd58700..6eeb05835 100644
--- a/frontend/src/components/TextPopover.tsx
+++ b/frontend/src/components/TextPopover.tsx
@@ -1,6 +1,5 @@
import { FunctionComponent, ReactElement } from "react";
import { Tooltip, TooltipProps } from "@mantine/core";
-import { useHover } from "@mantine/hooks";
import { isNull, isUndefined } from "lodash";
interface TextPopoverProps {
@@ -14,20 +13,13 @@ const TextPopover: FunctionComponent<TextPopoverProps> = ({
text,
tooltip,
}) => {
- const { hovered, ref } = useHover();
-
if (isNull(text) || isUndefined(text)) {
return children;
}
return (
- <Tooltip
- opened={hovered}
- label={text}
- {...tooltip}
- style={{ textWrap: "wrap" }}
- >
- <div ref={ref}>{children}</div>
+ <Tooltip label={text} {...tooltip} style={{ textWrap: "wrap" }}>
+ <div>{children}</div>
</Tooltip>
);
};