fix: add Sonner toast renderer for P2P trade notifications

P2P modules (TradeModal, p2p-fiat) use Sonner toast but the Sonner
Toaster component was not mounted in App.tsx. Only the shadcn Toaster
was rendered, causing all P2P toast.error/success calls to be invisible.
This commit is contained in:
2026-02-24 04:46:35 +03:00
parent 0ccac1253b
commit 231506a9f1
+2
View File
@@ -12,6 +12,7 @@ import { ReferralProvider } from '@/contexts/ReferralContext';
import { ProtectedRoute } from '@/components/ProtectedRoute';
import { P2PLayout } from '@/components/p2p/P2PLayout';
import { Toaster } from '@/components/ui/toaster';
import { Toaster as SonnerToaster } from '@/components/ui/sonner';
import { ErrorBoundary } from '@/components/ErrorBoundary';
import { initSentry } from '@/lib/sentry';
import './App.css';
@@ -232,6 +233,7 @@ function App() {
</AppProvider>
</AuthProvider>
<Toaster />
<SonnerToaster position="top-center" />
</ErrorBoundary>
</ThemeProvider>
);