Skip to content

Commit c50a9a4

Browse files
committed
fix(types): next theme type build error
1 parent 629b5c7 commit c50a9a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/theme-provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import * as React from "react";
44
import { ThemeProvider as NextThemesProvider } from "next-themes";
5-
import { type ThemeProviderProps } from "next-themes/dist/types";
5+
type ThemeProviderProps = React.ComponentProps<typeof NextThemesProvider>;
66

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

0 commit comments

Comments
 (0)