Fix: Remove amount from Approve button in secondary actions menu#71441
Conversation
|
@jayeshmangwani Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@jayeshmangwani PR is ready please let me know if we need to remove the amount from other places as well |
…condary-actions-menu
|
@abzokhattab , we are using App/src/components/SettlementButton/index.tsx Lines 197 to 198 in fa5e06d App/src/hooks/usePaymentOptions.ts Lines 131 to 132 in fa5e06d |
|
@jayeshmangwani I’ve made multiple attempts to find where those buttons are displayed, but no luck. Were you able to locate them? If yes, could you please outline the steps you took? I can then add screenshots. |
…condary-actions-menu
|
@abzokhattab I’m not able to view the buttons on the app, but I can see that these two PRs #62107 #60431 are the source of the added amount with the approve button. |
Reviewer Checklist
Screenshots/Videos |
|
Hey @dannymcclain , since you raised this issue, just pinging you here. If the |
|
@jasperhuangg , in the code, we have two other usages of App/src/components/SettlementButton/index.tsx Lines 197 to 198 in 4ab2b42 App/src/hooks/usePaymentOptions.ts Lines 131 to 132 in 4ab2b42 |
I'm honestly not sure exactly where else it might show up, but if we find any other places it would be great to update them here. |
|
@abzokhattab After reviewing a few PRs ( #60431 and #66790 this changes was added, I think we can safely remove the amount from the Approve button in two other places. We can also update the language files to use only the “Approve” text and remove the amount logic from there. Please make those changes so we can proceed with the merge. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/jasperhuangg in version: 9.2.29-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.29-5 🚀
|






Explanation of Change
Fixed Issues
$ #70434
PROPOSAL: #70434 (comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop