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:
Ho Ngoc Hai
2026-04-16 10:56:56 +07:00
parent 25f415f3bc
commit 44533a88f4
4 changed files with 22 additions and 36 deletions

View File

@@ -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>