@dodoex/wallet-web3-react 0.0.1-beta.0 → 0.0.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,6 +24,7 @@ export declare const WalletConnectProvider: React.Provider<{
24
24
  decimals: number;
25
25
  };
26
26
  logo: React.ReactNode;
27
+ logoBg?: React.ReactNode;
27
28
  };
28
29
  getTokenLogoUrl?: ((op: {
29
30
  chainId?: number | null;
@@ -58,6 +59,7 @@ export declare const useWalletConnectContext: () => {
58
59
  decimals: number;
59
60
  };
60
61
  logo: React.ReactNode;
62
+ logoBg?: React.ReactNode;
61
63
  };
62
64
  getTokenLogoUrl?: ((op: {
63
65
  chainId?: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodoex/wallet-web3-react",
3
- "version": "0.0.1-beta.0",
3
+ "version": "0.0.1-beta.1",
4
4
  "source": "src/index.tsx",
5
5
  "types": "dist/types/index.d.ts",
6
6
  "main": "dist/index.js",
@@ -32,6 +32,8 @@
32
32
  ]
33
33
  },
34
34
  "peerDependencies": {
35
+ "react": ">=17.0.2",
36
+ "react-dom": ">=17.0.2",
35
37
  "@dodoex/wallet-web3": "0.0.61-beta.0"
36
38
  },
37
39
  "devDependencies": {
@@ -162,7 +162,7 @@ function AccountCardInfo({
162
162
 
163
163
  return (
164
164
  <ThemeProvider theme={theme}>
165
- <AccountCardInfoBg chainLogo={chain?.logo}>
165
+ <AccountCardInfoBg chainLogo={chain?.logoBg ?? chain?.logo}>
166
166
  <Box
167
167
  sx={{
168
168
  typography: 'body2',
@@ -458,12 +458,6 @@ function AccountPage({
458
458
  },
459
459
  }}
460
460
  onClick={() => {
461
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
462
- // const provider = (useWalletStore.getState().provider as any)
463
- // ?.provider;
464
- // if (provider._handleDisconnect) {
465
- // provider._handleDisconnect();
466
- // }
467
461
  walletWeb3?.disconnectWallet();
468
462
  onClose();
469
463
  }}
@@ -28,6 +28,7 @@ const WalletConnectContext = React.createContext<{
28
28
  decimals: number;
29
29
  };
30
30
  logo: React.ReactNode;
31
+ logoBg?: React.ReactNode;
31
32
  };
32
33
  getTokenLogoUrl?: (op: {
33
34
  chainId?: number | null;
package/tsconfig.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "newLine": "CRLF",
15
15
  "declaration": true,
16
16
  "declarationDir": "./dist/types",
17
- "jsx": "preserve",
17
+ "jsx": "react",
18
18
  "target": "es2016"
19
19
  },
20
20
  "exclude": ["node_modules"],