Fix testing errors
This commit is contained in:
@@ -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}`}
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { TooltipViewProps } from "./Tooltip.types";
|
||||
export function TooltipView({
|
||||
text,
|
||||
position,
|
||||
className,
|
||||
className: _className,
|
||||
tooltipClasses,
|
||||
pointerClasses,
|
||||
}: TooltipViewProps) {
|
||||
|
||||
Reference in New Issue
Block a user