🚑 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,6 +39,7 @@ 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}`}
> >
<FeatureFlagsProvider>
<ToastProvider> <ToastProvider>
<SupabaseProvider session={session}> <SupabaseProvider session={session}>
<BrainConfigProvider> <BrainConfigProvider>
@ -50,6 +52,7 @@ const RootLayout = async ({
</SupabaseProvider> </SupabaseProvider>
</ToastProvider> </ToastProvider>
<Analytics /> <Analytics />
</FeatureFlagsProvider>
</body> </body>
</html> </html>
); );