Skip to content

Commit

Permalink
Update next-themes/src/index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
pacocoursey authored Mar 13, 2024
1 parent 80f9aa7 commit fa4ed74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next-themes/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const defaultContext: UseThemeProps = { setTheme: _ => {}, themes: [] }

export const useTheme = () => React.useContext(ThemeContext) ?? defaultContext

export const ThemeProvider = (props: ThemeProviderProps):React.ReactNode => {
export const ThemeProvider = (props: ThemeProviderProps): React.ReactNode => {
const context = React.useContext(ThemeContext)

// Ignore nested context providers, just passthrough children
Expand Down

0 comments on commit fa4ed74

Please sign in to comment.