Skip to content

Commit

Permalink
feat(frontend): update _app to include new swr config provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ardaerzin committed Dec 10, 2024
1 parent c4836fb commit 03bc276
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions agenta-web/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import ProjectContextProvider from "@/contexts/project.context"
import "ag-grid-community/styles/ag-grid.css"
import "ag-grid-community/styles/ag-theme-alpine.css"
import {Inter} from "next/font/google"
import AgSWRConfig from "@/lib/api/SWRConfig"

const NoMobilePageWrapper = dynamicComponent("NoMobilePageWrapper/NoMobilePageWrapper")

Expand Down Expand Up @@ -57,20 +58,22 @@ export default function App({Component, pageProps}: AppProps) {
<link rel="shortcut icon" href="/assets/favicon.ico" />
</Head>
<main className={`${inter.variable} font-sans`}>
<PostHogProvider client={posthog}>
<ThemeContextProvider>
<ProfileContextProvider>
<ProjectContextProvider>
<AppContextProvider>
<Layout>
<Component {...pageProps} />
<NoMobilePageWrapper />
</Layout>
</AppContextProvider>
</ProjectContextProvider>
</ProfileContextProvider>
</ThemeContextProvider>
</PostHogProvider>
<AgSWRConfig>
<PostHogProvider client={posthog}>
<ThemeContextProvider>
<ProfileContextProvider>
<ProjectContextProvider>
<AppContextProvider>
<Layout>
<Component {...pageProps} />
<NoMobilePageWrapper />
</Layout>
</AppContextProvider>
</ProjectContextProvider>
</ProfileContextProvider>
</ThemeContextProvider>
</PostHogProvider>
</AgSWRConfig>
</main>
</>
)
Expand Down

0 comments on commit 03bc276

Please sign in to comment.