mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
The docs site pulled in RainbowKit, which bundles a WalletConnect connector. That connector phoned pulse.walletconnect.org on every page load — third-party telemetry from a documentation page — and it could not have worked anyway: the project id fell back to the literal 'YOUR_PROJECT_ID'. The browser wallet already speaks EIP-1193, so wagmi's injected connector is all the identity demo needs: the extension is the only party in the flow, with no bridge service and no vendor id. ConnectWallet replaces RainbowKit's modal using our own Button. wagmi and viem stay — they are how the page reads and writes contracts. Verified: a clean build exports 8,879 files and the shipped JS contains no walletconnect reference.
19 lines
497 B
TypeScript
19 lines
497 B
TypeScript
"use client"
|
|
|
|
import { type ReactNode } from "react"
|
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"
|
|
import { WagmiProvider } from "wagmi"
|
|
|
|
import { getConfig } from "@/lib/wagmi"
|
|
|
|
const queryClient = new QueryClient()
|
|
const config = getConfig()
|
|
|
|
export function Web3Provider({ children }: { children: ReactNode }) {
|
|
return (
|
|
<WagmiProvider config={config}>
|
|
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
|
|
</WagmiProvider>
|
|
)
|
|
}
|