Repository navigation
Fix bug with The close button linked to "Request money. Get $250" is not functioning - #36068
Conversation
|
@cristipaval |
|
COuld you please take care of the lint errors? |
Yeah |
| shouldShowReferralCTA: PropTypes.bool, | ||
|
|
||
| /** A method triggered when the user closes the call to action banner */ | ||
| onCallToActionClosed: PropTypes.func, |
There was a problem hiding this comment.
Remove the default value too (defaultProps)
| )} | ||
| </View> | ||
| {this.props.shouldShowReferralCTA && this.state.shouldShowReferralModal && ( | ||
| {this.props.shouldShowReferralCTA && ( |
There was a problem hiding this comment.
Remove shouldShowReferralCTA prop. Instead use !dismissedReferralBanners(this.props.referralContentType)
There was a problem hiding this comment.
I'm actually not sure about this
Because we will have to pass dismissedReferralBanners as a parameter
And it turns out that we are changing one thing for another
There was a problem hiding this comment.
Actually ignore this comment. I think it's better to keep BaseOptionsSelector onyx-free
| closeReferralModal() { | ||
| this.setState((prevState) => ({shouldShowReferralModal: !prevState.shouldShowReferralModal})); | ||
| this.props.onCallToActionClosed(this.props.referralContentType); | ||
| } | ||
|
|
There was a problem hiding this comment.
There is a leftover
this.closeReferralModal = this.closeReferralModal.bind(this);This should be removed
|
@s77rt |
|
@ZhenjaHorbach Please fix the tests. The tests should state that after pressing the close button the user should Verify that the refer modal is closed |
As far as I understand |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemweb-chrome.moviOS: Nativeios.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
@ZhenjaHorbach I'm referring to the testing steps. Those steps are performed by the QA team and should clarify what to expect. |
Sorry )) |
Done ) |
|
Thank you! |
|
@ZhenjaHorbach Please change last step to:
I think this is clear enough as the rest of the sentence may appear to be referring to the RHP modal |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…equest-money-is-not-functioning Fix bug with The close button linked to "Request money. Get $250" is not functioning (cherry picked from commit 8da7fe5)
|
🚀 Cherry-picked to staging by https://github.com/marcaaron in version: 1.4.38-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.38-6 🚀
|
Details
Fixed Issues
$ #36032
PROPOSAL: #36032 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so 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
Screen.Recording.2024-02-07.at.21.11.11.mov
Android: mWeb Chrome
android-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov