Fix testing errors

This commit is contained in:
adilallo
2026-02-02 09:32:41 -07:00
parent abe4bff09e
commit 291625e3e7
7 changed files with 48 additions and 49 deletions
+1 -9
View File
@@ -5,13 +5,7 @@ import { TooltipView } from "./Tooltip.view";
import type { TooltipProps } from "./Tooltip.types";
const TooltipContainer = memo<TooltipProps>(
({
children,
text,
position = "top",
className = "",
disabled = false,
}) => {
({ children, text, position = "top", className = "", disabled = false }) => {
const [isVisible, setIsVisible] = useState(false);
if (disabled) {
@@ -29,8 +23,6 @@ const TooltipContainer = memo<TooltipProps>(
position === "top" ? "bottom-[-7px]" : "top-[-7px]"
} left-1/2 -translate-x-1/2`;
const tooltipId = `tooltip-${text.replace(/\s+/g, "-").toLowerCase()}`;
return (
<div
className={`relative inline-block ${className}`}
+1 -1
View File
@@ -3,7 +3,7 @@ import type { TooltipViewProps } from "./Tooltip.types";
export function TooltipView({
text,
position,
className,
className: _className,
tooltipClasses,
pointerClasses,
}: TooltipViewProps) {