handle default dark theme & install next-themes

This commit is contained in:
Ehsan
2024-09-27 15:41:17 +03:30
parent 68f75cd5f7
commit 3fe2b8ee85
9 changed files with 63 additions and 16 deletions
+5 -2
View File
@@ -1,6 +1,7 @@
import "./globals.css";
import ThemeRegistry from "./component/ThemeRegistry";
import "jalaali-react-date-picker/lib/styles/index.css";
import { Providers } from "./Providers";
export const metadata = {
title: "نوبت724",
@@ -13,9 +14,11 @@ export const metadata = {
export default function RootLayout({ children }) {
return (
<html lang="fa" dir="rtl">
<html lang="fa" dir="rtl" suppressHydrationWarning>
<ThemeRegistry>
<body className="bg-[#FAFAFA]">{children}</body>
<body className="bg-[#FAFAFA]">
<Providers>{children}</Providers>
</body>
</ThemeRegistry>
</html>
);