diff --git a/apps/dashboard/src/components/theme-provider.tsx b/apps/dashboard/src/components/theme-provider.tsx index 08c7e516a9..5c596f24a9 100644 --- a/apps/dashboard/src/components/theme-provider.tsx +++ b/apps/dashboard/src/components/theme-provider.tsx @@ -1,8 +1,8 @@ "use client"; import { ThemeProvider as NextThemesProvider } from "next-themes"; -import { type ThemeProviderProps } from "next-themes/dist/types"; import * as React from "react"; +type ThemeProviderProps = Parameters[0]; export function ThemeProvider({ children, ...props }: ThemeProviderProps) { return {children}; diff --git a/apps/website/src/app/layout.tsx b/apps/website/src/app/layout.tsx index 4b1092ba7e..ee9c6d9900 100644 --- a/apps/website/src/app/layout.tsx +++ b/apps/website/src/app/layout.tsx @@ -23,7 +23,7 @@ export const metadata: Metadata = { export default function Layout({ children }: { children: ReactElement }) { return ( - + +
diff --git a/apps/website/src/components/theme-provider.tsx b/apps/website/src/components/theme-provider.tsx index 08c7e516a9..5c596f24a9 100644 --- a/apps/website/src/components/theme-provider.tsx +++ b/apps/website/src/components/theme-provider.tsx @@ -1,8 +1,8 @@ "use client"; import { ThemeProvider as NextThemesProvider } from "next-themes"; -import { type ThemeProviderProps } from "next-themes/dist/types"; import * as React from "react"; +type ThemeProviderProps = Parameters[0]; export function ThemeProvider({ children, ...props }: ThemeProviderProps) { return {children};