mirror of
https://github.com/zoo-apps/network.git
synced 2026-10-30 14:56:38 +00:00
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]>
26 lines
798 B
TypeScript
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>
|
|
)
|
|
}
|