Skip to content

Commit

Permalink
docs: Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wenty22 committed Aug 26, 2024
1 parent 48f0e0b commit 0556f9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions examples/nextjs/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import '@node-real/walletkit/styles.css';
import '@/styles/globals.css';
import { mainnet } from 'wagmi/chains';

import { trustWallet, metaMask, walletConnect } from '@node-real/walletkit/evm';
import { trustWallet, metaMask, walletConnect, evmConfig } from '@node-real/walletkit/evm';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import {
WalletKitProvider,
Expand All @@ -15,14 +15,14 @@ import { AppProps } from 'next/app';
const queryClient = new QueryClient();

const config: WalletKitConfig = {
walletConfig: {
autoConnect: true,
evmConfig: {
walletConfigs: [
evmConfig({
autoConnect: true,
initialChainId: 1,
wallets: [metaMask(), trustWallet(), walletConnect()],
chains: [mainnet] as any[],
},
},
}),
],
appearance: {
mode: 'light',
},
Expand Down
12 changes: 6 additions & 6 deletions examples/vite/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
WalletKitProvider,
} from '@node-real/walletkit';
import VConsole from 'vconsole';
import { metaMask, trustWallet, walletConnect } from '@node-real/walletkit/evm';
import { evmConfig, metaMask, trustWallet, walletConnect } from '@node-real/walletkit/evm';
import { mainnet } from 'viem/chains';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';

Expand All @@ -14,14 +14,14 @@ new VConsole();
const queryClient = new QueryClient();

const config: WalletKitConfig = {
walletConfig: {
autoConnect: true,
evmConfig: {
walletConfigs: [
evmConfig({
autoConnect: true,
initialChainId: 1,
wallets: [metaMask(), trustWallet(), walletConnect()],
chains: [mainnet] as any[],
},
},
}),
],
appearance: {
mode: 'auto',
},
Expand Down

0 comments on commit 0556f9b

Please sign in to comment.