Skip to content

Commit 0ff8b9f

Browse files
committed
[MNY-316] SDK: directly show token selection after wallet connection in bridge widgets (#8580)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## 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}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 304e4e5 commit 0ff8b9f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changeset/heavy-clowns-stay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
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

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/WalletSwitcherConnectionScreen.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export function WalletSwitcherConnectionScreen(
7070
onClose={() => {}}
7171
onConnect={(w) => {
7272
props.onSelect(w);
73-
props.onBack();
7473
}}
7574
recommendedWallets={props.recommendedWallets}
7675
screenSetup={screenSetup}

0 commit comments

Comments
 (0)