mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 05:37:56 +00:00
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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user