Fix TransactionButton callbacks not called when sending tx from pay modal (#3611)

<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on fixing Transaction Button callbacks not being called when a transaction is executed in the Pay Modal.

### Detailed summary
- Added `rejectTx` parameter with reason in `useSendTransaction.ts`
- Added `resolveTx` parameter in `useSendTransaction.ts`
- Updated `useSendTransaction` in `useSendTransaction.tsx` to handle `rejectTx` and `resolveTx`
- Added `onTxSent` callback in `TxModal` and `ExecutingTxScreen` to handle transaction data

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
This commit is contained in:
MananTank
2024-07-05 05:19:20 +00:00
parent 0191e8dbad
commit f103a902f3
3 changed files with 28 additions and 8 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---
Fix Transaction Button callbacks not called when tx is executed in Pay Modal