From 994691b02515dfb579a5c3618631065bd76b9e4b Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sun, 7 Apr 2024 19:02:52 +0100 Subject: refactor(web): Move the tooltip provider to the root of the app --- apps/web/components/ui/info-tooltip.tsx | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'apps/web/components/ui') diff --git a/apps/web/components/ui/info-tooltip.tsx b/apps/web/components/ui/info-tooltip.tsx index abaf8197..eeace885 100644 --- a/apps/web/components/ui/info-tooltip.tsx +++ b/apps/web/components/ui/info-tooltip.tsx @@ -1,7 +1,6 @@ import { Tooltip, TooltipContent, - TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip"; import { cn } from "@/lib/utils"; @@ -19,20 +18,15 @@ export default function InfoTooltip({ variant?: "tip" | "explain"; }) { return ( - - - - {variant === "tip" ? ( - - ) : ( - - )} - - {children} - - + + + {variant === "tip" ? ( + + ) : ( + + )} + + {children} + ); } -- cgit v1.2.3-70-g09d2