mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Sign in mechanism
This commit is contained in:
+10
-4
@@ -1,7 +1,8 @@
|
||||
"use client";
|
||||
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import { Provider } from "jotai";
|
||||
import { Provider as JotaiProvider } from "jotai";
|
||||
import { SessionProvider } from "next-auth/react";
|
||||
|
||||
import { useDynamicViewportUnits } from "@/hooks/useDynamicViewportUnits";
|
||||
|
||||
@@ -9,9 +10,14 @@ export default function Providers({ children }: { children: React.ReactNode }) {
|
||||
const queryClient = new QueryClient();
|
||||
|
||||
useDynamicViewportUnits();
|
||||
|
||||
return (
|
||||
<Provider>
|
||||
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
|
||||
</Provider>
|
||||
<SessionProvider>
|
||||
<JotaiProvider>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
{children}
|
||||
</QueryClientProvider>
|
||||
</JotaiProvider>
|
||||
</SessionProvider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user