-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[CP STAGING] fix crash when saving a reason during hold request flow #36841
Conversation
@shubham1206agra 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] |
Starting review. |
@@ -45,7 +45,7 @@ function ProcessMoneyRequestHoldMenu({isVisible, onClose, onConfirm, anchorPosit | |||
<View style={[styles.mh5, styles.mv5]}> | |||
<View style={[styles.flexRow, styles.alignItemsCenter, styles.mb5]}> | |||
<Text style={[styles.textHeadline, styles.mr2]}>{translate('iou.holdEducationalTitle')}</Text> | |||
<TextPill textStyles={styles.holdRequestInline}>{translate('iou.hold')}</TextPill>; | |||
<TextPill textStyles={styles.holdRequestInline}>{translate('iou.hold')}</TextPill> |
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.
This fix is for native crash
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.
It's odd that linter doesn't catch these errors 🤯
@@ -40,7 +40,7 @@ function ProcessMoneyRequestHoldPage() { | |||
<View style={[styles.mh5, styles.flex1]}> | |||
<View style={[styles.flexRow, styles.alignItemsCenter, styles.mb5]}> | |||
<Text style={[styles.textHeadline, styles.mr2]}>{translate('iou.holdEducationalTitle')}</Text> | |||
<TextPill textStyles={styles.holdRequestInline}>{translate('iou.hold')}</TextPill>; | |||
<TextPill textStyles={styles.holdRequestInline}>{translate('iou.hold')}</TextPill> |
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.
This fix is for web console error
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-20.at.1.54.34.PM.movAndroid: mWeb ChromeScreen.Recording.2024-02-20.at.1.21.31.PM.moviOS: NativeScreen.Recording.2024-02-20.at.1.38.09.PM.moviOS: mWeb SafariScreen.Recording.2024-02-20.at.1.16.13.PM.movMacOS: Chrome / SafariScreen.Recording.2024-02-20.at.1.12.42.PM.movMacOS: DesktopScreen.Recording.2024-02-20.at.1.35.33.PM.mov |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
fix crash when saving a reason during hold request flow (cherry picked from commit 0c4cd6c)
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.43-20 🚀
|
Details
Fixed Issues
$ #36831
PROPOSAL: #36831 (comment)
Tests
Same as QA step
Offline tests
Same as QA step
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)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.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
android.mov
Android: mWeb Chrome
mchrome.mov
iOS: Native
ios.mov
iOS: mWeb Safari
msafari.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov