From 6775ad78561f42548f9e45df103ba0c56ede63b6 Mon Sep 17 00:00:00 2001 From: Arhan Ansari Date: Tue, 8 Oct 2024 01:26:55 +0530 Subject: [PATCH] Update Tooltip.tsx --- components/Tooltip.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/components/Tooltip.tsx b/components/Tooltip.tsx index d251096..1ca98b6 100644 --- a/components/Tooltip.tsx +++ b/components/Tooltip.tsx @@ -1,14 +1,10 @@ import React from "react"; import ReactTooltip from "react-tooltip"; -const Tooltip: React.FC<{ id: string; text: string }> = ({ id, text }) => ( +const Tooltip: React.FC<{ id: string; text: string; children: React.ReactNode }> = ({ id, text, children }) => ( <> - - ? + + {children}