Skip to content

Commit

Permalink
chore: remove providers and account
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 26, 2024
1 parent 0e4e90f commit 2c28453
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 32 deletions.
3 changes: 0 additions & 3 deletions src/v2/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
"use client"

import { Account } from "../Account"
import { NavMenu } from "./NavMenu"

const Header = () => (
<header className="relative flex h-16 w-full items-center justify-between p-2">
<NavMenu />
<Account />
</header>
)

Expand Down
32 changes: 3 additions & 29 deletions src/v2/components/Providers/Providers.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
"use client"

import { FuelProvider } from "@fuels/react"
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
import { QueryClient } from "@tanstack/react-query"
import { env } from "env"
import { fuelConfig } from "fuelConfig"
import { useAtomValue } from "jotai"
import { ThemeProvider } from "next-themes"
import dynamic from "next/dynamic"
import { ReactNode, Suspense } from "react"
import { ReactNode } from "react"
import { SWRConfig } from "swr"
import { fetcherForSWR } from "utils/fetcher"
import { shouldUseReCAPTCHAAtom } from "utils/recaptcha"
import { WagmiProvider } from "wagmi"
import { wagmiConfig } from "wagmiConfig"
import { AccountModal } from "../Account/components/AccountModal"
import { Web3ConnectionManager } from "../Web3ConnectionManager"
import { Toaster } from "../ui/Toaster"
import { TooltipProvider } from "../ui/Tooltip"
import { IntercomProvider } from "./IntercomProvider"
import { PostHogProvider } from "./PostHogProvider"

const DynamicReCAPTCHA = dynamic(() => import("v2/components/ReCAPTCHA"))

Expand All @@ -37,24 +28,7 @@ export function Providers({ children }: { children: ReactNode }) {
disableTransitionOnChange
>
<TooltipProvider>
<SWRConfig value={{ fetcher: fetcherForSWR }}>
<WagmiProvider config={wagmiConfig} reconnectOnMount={false}>
<QueryClientProvider client={queryClient}>
<FuelProvider ui={false} fuelConfig={fuelConfig}>
<PostHogProvider>
<IntercomProvider>
{children}
<AccountModal />
<Suspense>
<Web3ConnectionManager />
</Suspense>
</IntercomProvider>
</PostHogProvider>
</FuelProvider>
</QueryClientProvider>
</WagmiProvider>
</SWRConfig>

<SWRConfig value={{ fetcher: fetcherForSWR }}>{children}</SWRConfig>
<Toaster />
</TooltipProvider>
</ThemeProvider>
Expand Down

0 comments on commit 2c28453

Please sign in to comment.