From 994691b02515dfb579a5c3618631065bd76b9e4b Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Sun, 7 Apr 2024 19:02:52 +0100
Subject: refactor(web): Move the tooltip provider to the root of the app

---
 apps/web/lib/providers.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'apps/web/lib/providers.tsx')

diff --git a/apps/web/lib/providers.tsx b/apps/web/lib/providers.tsx
index b700d0c1..60f30931 100644
--- a/apps/web/lib/providers.tsx
+++ b/apps/web/lib/providers.tsx
@@ -3,6 +3,7 @@
 import type { Session } from "next-auth";
 import React, { useState } from "react";
 import { ThemeProvider } from "@/components/theme-provider";
+import { TooltipProvider } from "@/components/ui/tooltip";
 import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
 import { httpBatchLink, loggerLink } from "@trpc/client";
 import { SessionProvider } from "next-auth/react";
@@ -80,7 +81,7 @@ export default function Providers({
               enableSystem
               disableTransitionOnChange
             >
-              {children}
+              <TooltipProvider delayDuration={0}>{children}</TooltipProvider>
             </ThemeProvider>
           </QueryClientProvider>
         </api.Provider>
-- 
cgit v1.2.3-70-g09d2

