From 0ff8b9ff602aa7fc4c94355f60e8c422e68f9e89 Mon Sep 17 00:00:00 2001 From: MananTank Date: Fri, 19 Dec 2025 20:06:41 +0000 Subject: [PATCH] [MNY-316] SDK: directly show token selection after wallet connection in bridge widgets (#8580) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR modifies the behavior of the wallet connection process in the `WalletSwitcherConnectionScreen`. After a wallet is connected, it skips the "Choose Payment" screen and directly moves to the token selection screen, enhancing user experience in bridge widgets. ### Detailed summary - Updated the `onConnect` function to remove the call to `props.onBack()`, preventing the return to the "Choose Payment" screen. - Changed the flow to directly transition to the token selection screen after wallet connection. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit * **Bug Fixes** * Improved wallet connection flow in bridge widgets. After connecting a wallet on the Choose Payment screen, users are now directed directly to token selection instead of returning to the payment screen. ✏️ Tip: You can customize this high-level summary in your review settings. --- .changeset/heavy-clowns-stay.md | 5 +++++ .../ConnectWallet/screens/WalletSwitcherConnectionScreen.tsx | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changeset/heavy-clowns-stay.md diff --git a/.changeset/heavy-clowns-stay.md b/.changeset/heavy-clowns-stay.md new file mode 100644 index 00000000000..ff8d55ba768 --- /dev/null +++ b/.changeset/heavy-clowns-stay.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +Move directly to token selection screen after connecting wallet in "Choose Payment" screen instead of showing the "Choose Payment" screen again after connecting wallet in bridge widgets diff --git a/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.tsx b/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.tsx index 6a68edb83b0..f5ef924aeb1 100644 --- a/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.tsx +++ b/packages/thirdweb/src/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.tsx @@ -70,7 +70,6 @@ export function WalletSwitcherConnectionScreen( onClose={() => {}} onConnect={(w) => { props.onSelect(w); - props.onBack(); }} recommendedWallets={props.recommendedWallets} screenSetup={screenSetup}