From 75bc6d01cf605bb0cf3a8061d835eb1b42a3360d Mon Sep 17 00:00:00 2001 From: Arhan Ansari Date: Wed, 9 Oct 2024 10:01:05 +0530 Subject: [PATCH] Update Tooltip.tsx --- components/Tooltip.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/components/Tooltip.tsx b/components/Tooltip.tsx index 5be7482..5090c3d 100644 --- a/components/Tooltip.tsx +++ b/components/Tooltip.tsx @@ -3,9 +3,15 @@ import React from "react"; import { Tooltip as ReactTooltip } from "react-tooltip"; -const Tooltip: React.FC<{ id: string; text: string; children: React.ReactNode }> = ({ id, text, children }) => ( +interface TooltipProps { + id: string; + text: string; + children: React.ReactNode; +} + +const Tooltip: React.FC = ({ id, text, children }) => ( <> - + {children}