From 05eb4deb2c18bbf7a539d1b94569e1db695d5ec6 Mon Sep 17 00:00:00 2001 From: Wenty Li <105278450+wenty22@users.noreply.github.com> Date: Tue, 7 Jan 2025 13:36:52 +0800 Subject: [PATCH] fix: Update modal zIndex & binance wallet id (#258) --- .changeset/friendly-coats-move.md | 5 +++++ .../src/core/providers/ThemeProvider/themes/base.ts | 4 ++-- packages/walletkit/src/evm/wallets/binanceWallet/index.tsx | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .changeset/friendly-coats-move.md diff --git a/.changeset/friendly-coats-move.md b/.changeset/friendly-coats-move.md new file mode 100644 index 00000000..ebe52abd --- /dev/null +++ b/.changeset/friendly-coats-move.md @@ -0,0 +1,5 @@ +--- +'@node-real/walletkit': patch +--- + +Update modal zIndex & binance wallet id diff --git a/packages/walletkit/src/core/providers/ThemeProvider/themes/base.ts b/packages/walletkit/src/core/providers/ThemeProvider/themes/base.ts index 682c7346..1df2db2a 100644 --- a/packages/walletkit/src/core/providers/ThemeProvider/themes/base.ts +++ b/packages/walletkit/src/core/providers/ThemeProvider/themes/base.ts @@ -17,8 +17,8 @@ const radii = { }; const zIndices = { - modal: 2300, - toast: 2500, + modal: 1300, + toast: 1500, }; export const base = { diff --git a/packages/walletkit/src/evm/wallets/binanceWallet/index.tsx b/packages/walletkit/src/evm/wallets/binanceWallet/index.tsx index 3a2018a3..96f4601f 100644 --- a/packages/walletkit/src/evm/wallets/binanceWallet/index.tsx +++ b/packages/walletkit/src/evm/wallets/binanceWallet/index.tsx @@ -38,7 +38,7 @@ export function binanceWallet(props: InjectedEvmWalletOptions = {}): EvmWallet { return injected({ shimDisconnect: true, target: { - id: binanceWallet().id, + id: this.id, name: binanceWallet().name, async provider() { if (isMobile() && binanceWallet().isInstalled() && !isReady) {