🚑 fix feature flags -> add it back to context (#1106)

This commit is contained in:
Zineb El Bachiri 2023-09-05 11:43:03 +02:00 committed by GitHub
parent 9b163e5b65
commit 34708c51ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ import { Inter } from "next/font/google";
import { cookies, headers } from "next/headers"; import { cookies, headers } from "next/headers";
import { ToastProvider } from "@/lib/components/ui/Toast"; import { ToastProvider } from "@/lib/components/ui/Toast";
import { FeatureFlagsProvider } from "@/lib/context";
import { BrainConfigProvider } from "@/lib/context/BrainConfigProvider"; import { BrainConfigProvider } from "@/lib/context/BrainConfigProvider";
import { BrainProvider } from "@/lib/context/BrainProvider"; import { BrainProvider } from "@/lib/context/BrainProvider";
import { SupabaseProvider } from "@/lib/context/SupabaseProvider"; import { SupabaseProvider } from "@/lib/context/SupabaseProvider";
@ -38,18 +39,20 @@ const RootLayout = async ({
<body <body
className={`bg-white text-black min-h-screen flex flex-col dark:bg-black dark:text-white w-full ${inter.className}`} className={`bg-white text-black min-h-screen flex flex-col dark:bg-black dark:text-white w-full ${inter.className}`}
> >
<ToastProvider> <FeatureFlagsProvider>
<SupabaseProvider session={session}> <ToastProvider>
<BrainConfigProvider> <SupabaseProvider session={session}>
<BrainProvider> <BrainConfigProvider>
<App> <BrainProvider>
<div className="flex-1">{children}</div> <App>
</App> <div className="flex-1">{children}</div>
</BrainProvider> </App>
</BrainConfigProvider> </BrainProvider>
</SupabaseProvider> </BrainConfigProvider>
</ToastProvider> </SupabaseProvider>
<Analytics /> </ToastProvider>
<Analytics />
</FeatureFlagsProvider>
</body> </body>
</html> </html>
); );