From 838057d564302efb4e35989db2983f7e08bc97cb Mon Sep 17 00:00:00 2001 From: Brandon McConnell Date: Sun, 3 Aug 2025 17:02:08 -0400 Subject: [PATCH] Fix toast styling (#1893) --- apps/mail/components/ui/toast.tsx | 1 + apps/mail/package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/mail/components/ui/toast.tsx b/apps/mail/components/ui/toast.tsx index 3816ea500..537b822a7 100644 --- a/apps/mail/components/ui/toast.tsx +++ b/apps/mail/components/ui/toast.tsx @@ -19,6 +19,7 @@ const Toaster = () => { loading: , }} toastOptions={{ + unstyled: true, classNames: { title: 'title flex-1 justify-center text-black! dark:text-white! text-sm leading-none', description: 'text-black! dark:text-white! text-xs', diff --git a/apps/mail/package.json b/apps/mail/package.json index e1252f0f5..524f69768 100644 --- a/apps/mail/package.json +++ b/apps/mail/package.json @@ -107,7 +107,7 @@ "react-wrap-balancer": "^1.1.1", "recharts": "^2.15.1", "resend": "4.1.2", - "sonner": "1.7.4", + "sonner": "2.0.6", "superjson": "catalog:", "tailwind-merge": "3.0.2", "tailwindcss-animate": "1.0.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 229d1cc53..a128b3600 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -378,8 +378,8 @@ importers: specifier: 4.1.2 version: 4.1.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0) sonner: - specifier: 1.7.4 - version: 1.7.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + specifier: 2.0.6 + version: 2.0.6(react-dom@19.1.0(react@19.1.0))(react@19.1.0) superjson: specifier: 'catalog:' version: 2.2.2 @@ -8853,8 +8853,8 @@ packages: sonic-boom@4.2.0: resolution: {integrity: sha512-INb7TM37/mAcsGmc9hyyI6+QR3rR1zVRu36B0NeGXKnOOLiZOfER5SA+N7X7k3yUYRzLWafduTDvJAfDswwEww==} - sonner@1.7.4: - resolution: {integrity: sha512-DIS8z4PfJRbIyfVFDVnK9rO3eYDtse4Omcm6bt0oEr5/jtLgysmjuBl1frJ9E/EQZrFmKx2A8m/s5s9CRXIzhw==} + sonner@2.0.6: + resolution: {integrity: sha512-yHFhk8T/DK3YxjFQXIrcHT1rGEeTLliVzWbO0xN8GberVun2RiBnxAjXAYpZrqwEVHBG9asI/Li8TAAhN9m59Q==} peerDependencies: react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc @@ -18806,7 +18806,7 @@ snapshots: dependencies: atomic-sleep: 1.0.0 - sonner@1.7.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0): + sonner@2.0.6(react-dom@19.1.0(react@19.1.0))(react@19.1.0): dependencies: react: 19.1.0 react-dom: 19.1.0(react@19.1.0)