Skip to content

Commit

Permalink
Fix ThemeProviderProps not found error
Browse files Browse the repository at this point in the history
Signed-off-by: Quanyi Ma <[email protected]>
  • Loading branch information
genedna committed Jan 20, 2025
1 parent b14efe8 commit f533a3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aria/components/contexts/theme-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import * as React from "react";
import { ThemeProvider as NextThemesProvider } from "next-themes";
import { type ThemeProviderProps } from "next-themes/dist/types";

type ThemeProviderProps = React.ComponentProps<typeof NextThemesProvider>;

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

0 comments on commit f533a3d

Please sign in to comment.