Skip to content

Commit d324b50

Browse files
committed
fix: Typescript error on BetterTooltip
1 parent ce89529 commit d324b50

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/components/ui/BetterTooltip.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,10 @@ export const TooltipContent: React.FC<{
142142
children: React.ReactNode;
143143
className?: string;
144144
sideOffset?: number;
145-
}> = (
146-
// We're intentionally not using the props here but TooltipContent element acts as a data container
147-
{ children: _children }
148-
) => {
149-
return null; // This doesn't render directly, content is passed to portal via context
145+
}> = () => {
146+
// This component doesn't render its children directly
147+
// Content is passed to portal via context in the parent Tooltip component
148+
return null;
150149
};
151150

152151
// Portal component that actually renders the tooltip
@@ -212,7 +211,7 @@ const TooltipPortal: React.FC = () => {
212211
window.removeEventListener('resize', updatePosition);
213212
window.removeEventListener('scroll', updatePosition);
214213
};
215-
}, [open, triggerRef.current, tooltipRef.current, isMobile]);
214+
}, [open, triggerRef, tooltipRef, isMobile]);
216215

217216
if (!open) return null;
218217

0 commit comments

Comments
 (0)