-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug with The close button linked to "Request money. Get $250" is not functioning #36068
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 |
@@ -41,9 +41,6 @@ const propTypes = { | |||
/** Whether referral CTA should be displayed */ | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the default value too (defaultProps)
@@ -653,12 +644,9 @@ class BaseOptionsSelector extends Component { | |||
</> | |||
)} | |||
</View> | |||
{this.props.shouldShowReferralCTA && this.state.shouldShowReferralModal && ( | |||
{this.props.shouldShowReferralCTA && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove shouldShowReferralCTA
prop. Instead use !dismissedReferralBanners(this.props.referralContentType)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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