handle default dark theme & install next-themes
This commit is contained in:
+5
-2
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user