fix(web): wire up inquiry modal toast notification on listing detail page
The "Nhắn tin" button's inquiry modal now shows a success toast via sonner after submission instead of an in-dialog success state, and closes the modal automatically. Added sonner as a dependency and mounted <Toaster> in the root locale layout. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -3,6 +3,7 @@ import { Inter } from 'next/font/google';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { NextIntlClientProvider } from 'next-intl';
|
||||
import { getMessages, getTranslations } from 'next-intl/server';
|
||||
import { Toaster } from 'sonner';
|
||||
import { AuthProvider } from '@/components/providers/auth-provider';
|
||||
import { NotificationsProvider } from '@/components/providers/notifications-provider';
|
||||
import { QueryProvider } from '@/components/providers/query-provider';
|
||||
@@ -124,6 +125,7 @@ export default async function LocaleLayout({
|
||||
<QueryProvider>
|
||||
<AuthProvider>
|
||||
<NotificationsProvider>
|
||||
<Toaster position="top-right" richColors closeButton />
|
||||
<WebVitals />
|
||||
{children}
|
||||
</NotificationsProvider>
|
||||
|
||||
Reference in New Issue
Block a user