From 7c6c196cb236fbf7440ab2bd0bc48e2c103c8113 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Wed, 19 Feb 2025 21:20:25 +0800 Subject: [PATCH] feat(theme): wrap application in ThemeProvider for improved theme management --- src/app/layout.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index f7fa87e..32898f2 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,6 +1,7 @@ +import "./globals.css"; import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; -import "./globals.css"; +import { ThemeProvider } from "@/components/theme-provider"; const geistSans = Geist({ variable: "--font-geist-sans", @@ -27,7 +28,14 @@ export default function RootLayout({ - {children} + + {children} + );