-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be0c447
commit 8c0fd04
Showing
5 changed files
with
24 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export type { AuthButtonProps } from './AuthButton'; | ||
export { AuthButton } from './AuthButton'; |
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,2 +1 @@ | ||
export { ChainLogo } from './ChainLogo'; | ||
export type { ChainLogoProps } from './ChainLogo'; |
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,20 +1,35 @@ | ||
import { QueryClient, QueryClientProvider } from '@gobob/react-query'; | ||
import { BOBUIProvider } from '@gobob/ui'; | ||
import { WagmiProvider } from '@gobob/wagmi'; | ||
import { WagmiProvider } from 'wagmi'; | ||
import { PropsWithChildren } from 'react'; | ||
import { getConfig } from '@gobob/wagmi'; | ||
import { DynamicWagmiConnector } from '@dynamic-labs/wagmi-connector'; | ||
import { DynamicContextProvider } from '@dynamic-labs/sdk-react-core'; | ||
import { BitcoinWalletConnectors } from '@dynamic-labs/bitcoin'; | ||
import { EthereumWalletConnectors } from '@dynamic-labs/ethereum'; | ||
|
||
import { isProd } from '@/constants'; | ||
import { LinguiClientProvider } from '@/i18n/provider'; | ||
|
||
export const wrapper = ({ children }: PropsWithChildren) => { | ||
const queryClient = new QueryClient(); | ||
|
||
return ( | ||
<LinguiClientProvider initialLocale='en' initialMessages={{}}> | ||
<QueryClientProvider client={queryClient}> | ||
<WagmiProvider> | ||
<BOBUIProvider>{children}</BOBUIProvider> | ||
<DynamicContextProvider | ||
settings={{ | ||
environmentId: process.env.NEXT_PUBLIC_DYNAMIC_ENVIRONMENT_ID as string, | ||
walletConnectors: [BitcoinWalletConnectors, EthereumWalletConnectors] | ||
}} | ||
> | ||
<LinguiClientProvider initialLocale='en' initialMessages={{}}> | ||
<WagmiProvider config={getConfig({ isProd, multiInjectedProviderDiscovery: false })}> | ||
<QueryClientProvider client={queryClient}> | ||
<DynamicWagmiConnector> | ||
<BOBUIProvider>{children}</BOBUIProvider> | ||
</DynamicWagmiConnector> | ||
</QueryClientProvider> | ||
</WagmiProvider> | ||
</QueryClientProvider> | ||
</LinguiClientProvider> | ||
</LinguiClientProvider> | ||
</DynamicContextProvider> | ||
); | ||
}; |