upates on the toast and createorder and allthose things

This commit is contained in:
2026-09-25 16:02:57 +05:30
parent 3e7aaf1e25
commit f86e4b853b
16 changed files with 1274 additions and 133 deletions

View File

@@ -1,6 +1,6 @@
import { Suspense, lazy } from 'react';
import { Toaster } from '@/components/ui/toaster';
import { Toaster as HotToaster } from 'react-hot-toast';
import AppToaster from '@/components/third-party/AppToaster';
import { QueryClientProvider } from '@tanstack/react-query';
import { queryClientInstance } from '@/lib/query-client';
import { Navigate, BrowserRouter as Router, Route, Routes } from 'react-router-dom';
@@ -177,10 +177,11 @@ function App() {
<AuthenticatedApp />
</Router>
<Toaster />
{/* The design system's `toast` helper wraps react-hot-toast, which needs
its own renderer mounted. Without this every toast in the app fires
into nothing — including the data layer's failure notices. */}
<HotToaster position="bottom-right" />
{/* Every toast in the app (OpenToast, the design system's `toast`,
direct react-hot-toast calls) renders here: top-right, one card
design. Without a mounted renderer every toast fires into
nothing — including the data layer's failure notices. */}
<AppToaster />
</ZoneProvider>
</QueryClientProvider>
</AuthProvider>