Files
zeekayandHanzo Dev b8300c38ac zoo.network: drop the broken wallet stack to unblock the build
RainbowKit/wagmi pulled an unresolvable @x402/* transitive that has failed
every build since Feb 2026, and its Connect Wallet was also runtime-broken
(Reown allowlist). A read-only explorer needs no wallet — remove the
ConnectButton + RainbowKitProvider/WagmiProvider, keeping theme + react-query.
Unblocks the deploy of the live-data explorer.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-23 13:40:22 -07:00

26 lines
798 B
TypeScript

'use client'
import { ReactNode } from 'react'
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import { ThemeProvider } from 'next-themes'
// Read-only explorer: theme + data-fetching only. The wallet stack
// (wagmi/RainbowKit) was removed — it pulled an unresolvable @x402 transitive
// that broke every build since Feb 2026, and an explorer needs no wallet.
const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 60 * 1000,
refetchInterval: 60 * 1000,
},
},
})
export function Providers({ children }: { children: ReactNode }) {
return (
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
</ThemeProvider>
)
}