Skip to content

Commit

Permalink
feat: switch to @pubkeyapp/wallet-adapter-mantine-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Jan 9, 2024
1 parent b324edc commit b7bf91e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
12 changes: 6 additions & 6 deletions apps/web/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ const client = new QueryClient()
export function App() {
return (
<QueryClientProvider client={client}>
<ClusterProvider>
<SolanaProvider>
<UiThemeProvider link={ThemeLink}>
<UiThemeProvider link={ThemeLink}>
<ClusterProvider>
<SolanaProvider>
<AppLayout>
<AppRoutes />
</AppLayout>
</UiThemeProvider>
</SolanaProvider>
</ClusterProvider>
</SolanaProvider>
</ClusterProvider>
</UiThemeProvider>
</QueryClientProvider>
)
}
4 changes: 1 addition & 3 deletions apps/web/src/app/features/solana/solana-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@ import {
useWallet,
WalletProvider,
} from '@solana/wallet-adapter-react'
import { WalletModalProvider, WalletMultiButton } from '@solana/wallet-adapter-react-ui'
import { WalletModalProvider, WalletMultiButton } from '@pubkeyapp/wallet-adapter-mantine-ui'
import { SolflareWalletAdapter } from '@solana/wallet-adapter-solflare'
import { ReactNode, useCallback, useMemo } from 'react'
import { toWalletAdapterNetwork, useCluster } from '../cluster/cluster-data-access'

require('@solana/wallet-adapter-react-ui/styles.css')

export const WalletButton = WalletMultiButton

export function SolanaProvider({ children }: { children: ReactNode }) {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"private": true,
"packageManager": "[email protected]",
"dependencies": {
"@beeman/preset-anchor": "^2.0.0",
"@coral-xyz/anchor": "^0.29.0",
"@mantine/core": "^7.3.0",
"@mantine/dates": "^7.3.0",
Expand All @@ -23,7 +24,7 @@
"@mantine/notifications": "^7.3.0",
"@mantine/spotlight": "^7.3.0",
"@nx/devkit": "17.2.7",
"@beeman/preset-anchor": "^2.0.0",
"@pubkeyapp/wallet-adapter-mantine-ui": "^2.3.0",
"@solana/spl-token": "^0.3.9",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
Expand Down
19 changes: 19 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b7bf91e

Please sign in to comment.