From d9fa4866dcf5f8f594050dc501a5f087a5db50bb Mon Sep 17 00:00:00 2001 From: shinya Date: Thu, 26 Jun 2025 21:07:10 +0800 Subject: [PATCH] fix: theme provider --- src/components/ThemeProvider.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/ThemeProvider.tsx b/src/components/ThemeProvider.tsx index 41b170e..4ec0be5 100644 --- a/src/components/ThemeProvider.tsx +++ b/src/components/ThemeProvider.tsx @@ -1,9 +1,18 @@ 'use client'; +import type { ThemeProviderProps } from 'next-themes'; import { ThemeProvider as NextThemesProvider } from 'next-themes'; -import type { ThemeProviderProps } from 'next-themes/dist/types'; import * as React from 'react'; export function ThemeProvider({ children, ...props }: ThemeProviderProps) { - return {children}; + return ( + + {children} + + ); }