Skip to content

Add allowLinkingProfiles to useWalletDetailsModal hook #7860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@
client={client}
closeModal={closeModal}
locale={locale}
manageWallet={props.detailsModal?.manageWallet}

Check warning on line 898 in packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx

View check run for this annotation

Codecov / codecov/patch

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

Added line #L898 was not covered by tests
onBack={() => {
setScreen("main");
}}
Expand Down Expand Up @@ -1671,6 +1672,18 @@
* @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;
};
};

/**
Expand Down Expand Up @@ -1738,6 +1751,7 @@
hideReceiveFunds: props.hideReceiveFunds,
hideSendFunds: props.hideSendFunds,
hideSwitchWallet: props.hideSwitchWallet,
manageWallet: props.manageWallet,

Check warning on line 1754 in packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx

View check run for this annotation

Codecov / codecov/patch

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

Added line #L1754 was not covered by tests
networkSelector: props.networkSelector,
onClose: props.onClose,
payOptions: props.payOptions,
Expand Down
Loading