Skip to content

Commit

Permalink
Setting reloadOnDisconnect = false in default for CoinbaseWallet. (#79
Browse files Browse the repository at this point in the history
)

* feat: Setting `reloadOnDisconnect` = false in default for coinbaseWallet

* docs: Add changeset log
  • Loading branch information
wenty22 authored Dec 18, 2023
1 parent 7724cff commit f3ebc1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-mayflies-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@totejs/walletkit': patch
---

Setting `reloadOnDisconnect` = false in default for CoinbaseWallet.
7 changes: 4 additions & 3 deletions packages/walletkit/src/wallets/coinbaseWallet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { CoinbaseWalletIcon, CoinbaseWalletTransparentIcon } from './icon';

export const COINBASE_WALLET_ID = 'coinbaseWallet';

export type CoinbaseWalletConnectorOptions = Required<
ConstructorParameters<typeof CoinbaseWalletConnector>
>[0]['options'];
export type CoinbaseWalletConnectorOptions = Partial<
Required<ConstructorParameters<typeof CoinbaseWalletConnector>>[0]['options']
>;

export interface CoinbaseWalletProps extends PartialWalletProps {
connectorOptions?: CoinbaseWalletConnectorOptions;
Expand Down Expand Up @@ -39,6 +39,7 @@ export function coinbaseWallet(props: CoinbaseWalletProps = {}): WalletProps {
options: {
appName,
headlessMode: true,
reloadOnDisconnect: false,
...connectorOptions,
},
});
Expand Down

0 comments on commit f3ebc1b

Please sign in to comment.