Skip to content

Commit

Permalink
Merge branch 'dev' into 0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
wenty22 committed Dec 18, 2023
2 parents e996f6c + f94d619 commit 3ed1a93
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 3ed1a93

Please sign in to comment.