Commit e911a66
committed
[MNY-232] SDK: Fix ExecutingTxScreen missing back button in TransactionWidget (#8193)
<!--
## 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 focuses on enhancing the transaction handling in the `TransactionWidget` and `TransactionModal` components by ensuring that the `onBack` function is defined and properly utilized.
### Detailed summary
- In `TransactionWidget.tsx`, added `onBack` function to `ExecutingTxScreen` that sets the screen to `init-ui`.
- In `TransactionModal.tsx`, modified `onBack` to set the screen to `"deposit"`.
- In `ExecutingScreen.tsx`, changed `onBack` from optional to required.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->1 parent 86461f9 commit e911a66
File tree
3 files changed
+7
-1
lines changed- packages/thirdweb/src/react/web/ui
- Bridge
- TransactionButton
3 files changed
+7
-1
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
773 | 776 | | |
774 | 777 | | |
775 | 778 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
| |||
0 commit comments