Skip to content

Commit 5dadae4

Browse files
cursoragentyashjoisar
andcommitted
Add manageWallet option to wallet details modal configuration
Co-authored-by: yashjoisar <[email protected]>
1 parent b1ac15c commit 5dadae4

File tree

1 file changed

+14
-0
lines changed
  • packages/thirdweb/src/react/web/ui/ConnectWallet

1 file changed

+14
-0
lines changed

packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,7 @@ export function DetailsModal(props: {
895895
client={client}
896896
closeModal={closeModal}
897897
locale={locale}
898+
manageWallet={props.detailsModal?.manageWallet}
898899
onBack={() => {
899900
setScreen("main");
900901
}}
@@ -1671,6 +1672,18 @@ export type UseWalletDetailsModalOptions = {
16711672
* @param screen The name of the screen that was being shown when user closed the modal
16721673
*/
16731674
onClose?: (screen: string) => void;
1675+
1676+
/**
1677+
* Configure options for managing the connected wallet.
1678+
*/
1679+
manageWallet?: {
1680+
/**
1681+
* Allow linking other profiles to the connected wallet.
1682+
*
1683+
* By default it is `true`.
1684+
*/
1685+
allowLinkingProfiles?: boolean;
1686+
};
16741687
};
16751688

16761689
/**
@@ -1738,6 +1751,7 @@ export function useWalletDetailsModal() {
17381751
hideReceiveFunds: props.hideReceiveFunds,
17391752
hideSendFunds: props.hideSendFunds,
17401753
hideSwitchWallet: props.hideSwitchWallet,
1754+
manageWallet: props.manageWallet,
17411755
networkSelector: props.networkSelector,
17421756
onClose: props.onClose,
17431757
payOptions: props.payOptions,

0 commit comments

Comments
 (0)