From 5dadae4e0d4f9bc75246cb8179dd69882375f967 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 15 Aug 2025 10:23:29 +0000 Subject: [PATCH] Add manageWallet option to wallet details modal configuration Co-authored-by: yashjoisar --- .../src/react/web/ui/ConnectWallet/Details.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx b/packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx index 173fbd5ea27..4f8ba7d2531 100644 --- a/packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx +++ b/packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx @@ -895,6 +895,7 @@ export function DetailsModal(props: { client={client} closeModal={closeModal} locale={locale} + manageWallet={props.detailsModal?.manageWallet} onBack={() => { setScreen("main"); }} @@ -1671,6 +1672,18 @@ export type UseWalletDetailsModalOptions = { * @param screen The name of the screen that was being shown when user closed the modal */ onClose?: (screen: string) => void; + + /** + * Configure options for managing the connected wallet. + */ + manageWallet?: { + /** + * Allow linking other profiles to the connected wallet. + * + * By default it is `true`. + */ + allowLinkingProfiles?: boolean; + }; }; /** @@ -1738,6 +1751,7 @@ export function useWalletDetailsModal() { hideReceiveFunds: props.hideReceiveFunds, hideSendFunds: props.hideSendFunds, hideSwitchWallet: props.hideSwitchWallet, + manageWallet: props.manageWallet, networkSelector: props.networkSelector, onClose: props.onClose, payOptions: props.payOptions,