Skip to content

Commit

Permalink
correct theme
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Barto committed Feb 19, 2025
1 parent 32ec6b9 commit 0a26523
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 5 deletions.
16 changes: 11 additions & 5 deletions components/theme-provider.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
'use client'

import * as React from 'react'
import {
ThemeProvider as NextThemesProvider,
type ThemeProviderProps,
} from 'next-themes'
import { ThemeProvider as NextThemesProvider } from 'next-themes'

interface ThemeProviderProps {
children: React.ReactNode
attribute?: string
defaultTheme?: string
enableSystem?: boolean
storageKey?: string
themes?: string[]
}

export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>
}
}
105 changes: 105 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0a26523

Please sign in to comment.