-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"see more" button on connect wallet page
- Loading branch information
1 parent
0db8d6b
commit f23894c
Showing
5 changed files
with
136 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
"use client"; | ||
|
||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; | ||
import { useState, type ReactNode } from "react"; | ||
import { type ReactNode } from "react"; | ||
import { WagmiProvider, type State } from "wagmi"; | ||
|
||
import { PaymentInfoProvider } from "./payment-info-context"; | ||
import { config } from "./wagmi-config"; | ||
|
||
type Props = { | ||
children: ReactNode; | ||
initialState: State | undefined; | ||
}; | ||
|
||
export function Providers({ children, initialState }: Props) { | ||
const [queryClient] = useState(() => new QueryClient()); | ||
const queryClient = new QueryClient(); | ||
|
||
export function Providers({ children, initialState }: Props) { | ||
return ( | ||
<WagmiProvider config={config} initialState={initialState}> | ||
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider> | ||
<QueryClientProvider client={queryClient}> | ||
<PaymentInfoProvider>{children}</PaymentInfoProvider> | ||
</QueryClientProvider> | ||
</WagmiProvider> | ||
); | ||
} |