Update BasePaymentsPage to call "OpenPaymentMethods"#10161
Conversation
| @@ -201,7 +201,7 @@ class BasePaymentsPage extends React.Component { | |||
| } | |||
|
|
|||
| fetchData() { | |||
There was a problem hiding this comment.
I might just be missing it, but I'm not seeing the use of the onyx key IS_LOADING_PAYMENT_METHODS here - are we using it?
There was a problem hiding this comment.
Its going to be used in KYCWall. Here and another spot.
Justicea83
left a comment
There was a problem hiding this comment.
Changes look good overall
|
🚀 Deployed to staging by @Justicea83 in version: 1.1.87-4 🚀
|
MariaHCD
left a comment
There was a problem hiding this comment.
@Justicea83 Not a big deal but I would've preferred to review this before it got merged 😅
| const onyxData = { | ||
| optimisticData: [ | ||
| { | ||
| onyxMethod: 'merge', |
There was a problem hiding this comment.
NAB: Looks like we've got a constant for onyxMethod: CONST.ONYX.METHOD.MERGE
There was a problem hiding this comment.
I have a follow up PR for antoher part of this refactor, I'll fix it then
|
@ctkochan22 We are not able to add bank account as in this step |
|
🚀 Deployed to production by @yuwenmemon in version: 1.1.87-9 🚀
|


Details
As part of the refactor (Web PR and Auth PR) for
"Get rvl=bankAccountList, fundList, userWallet, nameValuePairs", we want to pull only what we need, while also handling any offline cases.Fixed Issues
This covers the BasePaymentsPage https://github.com/Expensify/Expensify/issues/216153
Tests
user_goodpass_good4000056655665556PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)QA Steps
Screenshots
Web
Shown above
iOS