From a2ca7db052c0ce20b404f6f81b691850b3318b97 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Wed, 13 Mar 2024 14:33:54 +0000
Subject: mobile: Optimistic UI updates on actions

---
 packages/mobile/lib/providers.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'packages/mobile/lib/providers.tsx')

diff --git a/packages/mobile/lib/providers.tsx b/packages/mobile/lib/providers.tsx
index 394bad28..1717afb2 100644
--- a/packages/mobile/lib/providers.tsx
+++ b/packages/mobile/lib/providers.tsx
@@ -6,6 +6,8 @@ import superjson from "superjson";
 import useAppSettings, { getAppSettings } from "./settings";
 import { api } from "./trpc";
 
+import { ToastProvider } from "@/components/ui/Toast";
+
 function getTRPCClient(address: string) {
   return api.createClient({
     links: [
@@ -44,7 +46,9 @@ export function Providers({ children }: { children: React.ReactNode }) {
       client={trpcClient}
       queryClient={queryClient}
     >
-      <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
+      <QueryClientProvider client={queryClient}>
+        <ToastProvider>{children}</ToastProvider>
+      </QueryClientProvider>
     </api.Provider>
   );
 }
-- 
cgit v1.2.3-70-g09d2

