solana connector debugger
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
"dependencies": {
|
||||
"@descro/sdk": "workspace:*",
|
||||
"@solana/connector": "^0.2.4",
|
||||
"@solana/connector-debugger": "^0.1.1",
|
||||
"@solana/kit": "^6.0.0",
|
||||
"@tamagui/config": "^2.0.0-rc.42",
|
||||
"@tamagui/next-theme": "^2.0.0-rc.42",
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
import type { ReactNode } from 'react'
|
||||
import { useMemo } from 'react'
|
||||
import { AppProvider, getDefaultConfig, getDefaultMobileConfig } from '@solana/connector/react'
|
||||
import { ConnectorDebugPanel } from '@solana/connector-debugger'
|
||||
|
||||
function getOrigin() {
|
||||
if (typeof window !== 'undefined') return window.location.origin
|
||||
@@ -37,5 +38,10 @@ export function WalletProviders({ children }: { children: ReactNode }) {
|
||||
[],
|
||||
)
|
||||
|
||||
return <AppProvider connectorConfig={connectorConfig} mobile={mobile}>{children}</AppProvider>
|
||||
return (
|
||||
<AppProvider connectorConfig={connectorConfig} mobile={mobile}>
|
||||
{process.env.NODE_ENV === 'development' && <ConnectorDebugPanel />}
|
||||
{children}
|
||||
</AppProvider>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -14,7 +14,9 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body style={{ margin: 0, padding: 0, fontFamily: 'system-ui, sans-serif' }}>
|
||||
<NextTamaguiProvider>
|
||||
<WalletProviders>{children}</WalletProviders>
|
||||
<WalletProviders>
|
||||
{children}
|
||||
</WalletProviders>
|
||||
</NextTamaguiProvider>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user