move function handle change city to context

This commit is contained in:
ehsan
2025-05-03 17:58:43 +03:30
parent ca5583deab
commit 1ca1af52b1
3 changed files with 34 additions and 7 deletions
+4 -1
View File
@@ -8,6 +8,7 @@ import { GoogleTagManager } from "@next/third-parties/google";
// Toastify
import "react-toastify/dist/ReactToastify.css";
import CustomToastify from "./CustomToastify";
import { ProvinceProvider } from "@/context/ProvinceProvider";
export const metadata = {
title: "نوبت724",
@@ -28,7 +29,9 @@ export default function RootLayout({ children }) {
<ThemeRegistry>
<GoogleTagManager gtmId="GTM-NXBSV7GS" />
<body className="bg-[#FAFAFA]">
<Providers>{children}</Providers>
<ProvinceProvider>
<Providers>{children}</Providers>
</ProvinceProvider>
<CustomToastify />
</body>
<GoogleAnalytics gaId="G-HG3RZ1PJS5" />