From 9979fdd2b6a96e7e273fbc64cd284219d5e932f1 Mon Sep 17 00:00:00 2001 From: Wenty Li Date: Mon, 18 Dec 2023 17:49:01 +0800 Subject: [PATCH] feat: Setting `reloadOnDisconnect` = false in default for coinbaseWallet --- packages/walletkit/src/wallets/coinbaseWallet/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/walletkit/src/wallets/coinbaseWallet/index.tsx b/packages/walletkit/src/wallets/coinbaseWallet/index.tsx index 58d339d6..da4d849f 100644 --- a/packages/walletkit/src/wallets/coinbaseWallet/index.tsx +++ b/packages/walletkit/src/wallets/coinbaseWallet/index.tsx @@ -7,9 +7,9 @@ import { CoinbaseWalletIcon, CoinbaseWalletTransparentIcon } from './icon'; export const COINBASE_WALLET_ID = 'coinbaseWallet'; -export type CoinbaseWalletConnectorOptions = Required< - ConstructorParameters ->[0]['options']; +export type CoinbaseWalletConnectorOptions = Partial< + Required>[0]['options'] +>; export interface CoinbaseWalletProps extends PartialWalletProps { connectorOptions?: CoinbaseWalletConnectorOptions; @@ -39,6 +39,7 @@ export function coinbaseWallet(props: CoinbaseWalletProps = {}): WalletProps { options: { appName, headlessMode: true, + reloadOnDisconnect: false, ...connectorOptions, }, });