Skip to content

Commit 37ee414

Browse files
Fix toast notifications
Remove all toast notifications from the application.
1 parent a8ab99c commit 37ee414

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

src/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import { Suspense, lazy } from 'react';
33
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
44
import { AuthProvider } from '@/contexts/AuthContext';
5-
import { Toaster } from '@/components/ui/toaster';
65
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
76
import { Helmet, HelmetProvider } from 'react-helmet-async';
87
import { CookieBanner } from '@/components/CookieBanner';
@@ -89,7 +88,6 @@ function App() {
8988
</Suspense>
9089

9190
<CookieBanner />
92-
<Toaster />
9391
</div>
9492
</Router>
9593
</AuthProvider>

src/components/ui/toaster.tsx

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,6 @@ import {
99
} from "@/components/ui/toast"
1010

1111
export function Toaster() {
12-
const { toasts } = useToast()
13-
14-
return (
15-
<ToastProvider>
16-
{toasts.map(function ({ id, title, description, action, ...props }) {
17-
return (
18-
<Toast key={id} {...props}>
19-
<div className="grid gap-1">
20-
{title && <ToastTitle>{title}</ToastTitle>}
21-
{description && (
22-
<ToastDescription>{description}</ToastDescription>
23-
)}
24-
</div>
25-
{action}
26-
<ToastClose />
27-
</Toast>
28-
)
29-
})}
30-
<ToastViewport />
31-
</ToastProvider>
32-
)
12+
// Toaster désactivé - plus de notifications toast
13+
return null;
3314
}

0 commit comments

Comments
 (0)