feat: add react-hot-toast in admin and news layouts, and update ads form handling

This commit is contained in:
Ardeman
2025-03-12 19:20:59 +08:00
parent 4a21b7d331
commit f026277a88
5 changed files with 36 additions and 7 deletions
+2
View File
@@ -1,10 +1,12 @@
import type { PropsWithChildren } from 'react'
import { Toaster } from 'react-hot-toast'
export const AdminDefaultLayout = (properties: PropsWithChildren) => {
const { children } = properties
return (
<main className="font-admin relative min-h-dvh bg-[#F7F8FC]">
{children}
<Toaster />
</main>
)
}
+3
View File
@@ -1,4 +1,5 @@
import { type PropsWithChildren } from 'react'
import { Toaster } from 'react-hot-toast'
import { PopupModal } from '~/components/popup/modal'
import { SuccessModal } from '~/components/popup/success-modal'
@@ -44,6 +45,8 @@ export const NewsDefaultLayout = (properties: PropsWithChildren) => {
<FooterLinks />
</footer>
<Toaster />
<PopupModal
isOpen={isLoginOpen}
onClose={() => setIsLoginOpen(false)}