Skip to content

Commit

Permalink
Jotai bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bring-shrubbery committed Aug 3, 2024
1 parent 466f46b commit 063eced
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions apps/nextjs/src/app/providers.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
"use client";

import { ThemeProvider } from "next-themes";
import { PropsWithChildren } from "react";
import { Provider as JotaiProvider } from "jotai";
import { ThemeProvider } from "next-themes";

export function Providers({ children }: PropsWithChildren) {
return (
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem
disableTransitionOnChange
>
{children}
</ThemeProvider>
<JotaiProvider>
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem
disableTransitionOnChange
>
{children}
</ThemeProvider>
</JotaiProvider>
);
}

0 comments on commit 063eced

Please sign in to comment.