Skip to content

Commit

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

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

0 comments on commit 6ec6a0c

Please sign in to comment.