Skip to content

Commit

Permalink
fix: next theme props
Browse files Browse the repository at this point in the history
  • Loading branch information
royce-mathew committed Jan 14, 2025
1 parent be45780 commit fc0dba6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/providers/theme.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"use client"

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

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

0 comments on commit fc0dba6

Please sign in to comment.