From 095cb24b42a3783dcda6ce582dd3af2c8b390d7b Mon Sep 17 00:00:00 2001 From: kleap-admin Date: Fri, 16 Jan 2026 17:11:02 +0000 Subject: [PATCH] Update context/theme-provider.tsx --- context/theme-provider.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/context/theme-provider.tsx b/context/theme-provider.tsx index 18ab2ed..96b6d10 100644 --- a/context/theme-provider.tsx +++ b/context/theme-provider.tsx @@ -1,18 +1,18 @@ "use client"; import * as React from "react"; -import * as NextThemes from "next-themes"; +import { ThemeProvider as NextThemesProvider } from "next-themes"; /** * ThemeProvider wrapper for next-themes - * Uses namespace import to avoid Turbopack naming collision - * (Turbopack has issues when importing and re-exporting the same name) + * next-themes v0.3.0+ changed its export structure. + * Using a more robust way to handle types. */ export function ThemeProvider({ children, ...props -}: NextThemes.ThemeProviderProps) { +}: React.ComponentProps) { return ( - {children} + {children} ); }