Skip to content

Commit

Permalink
add type assertion in theme provider
Browse files Browse the repository at this point in the history
  • Loading branch information
saviorand committed Dec 9, 2024
1 parent 3431a48 commit 17bbe8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ import { ThemeProvider as NextThemesProvider } from "next-themes";
import { type ThemeProviderProps } from "next-themes/dist/types";

export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
return (
<NextThemesProvider {...(props as any)}>{children}</NextThemesProvider>
);
}

0 comments on commit 17bbe8d

Please sign in to comment.