-
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: console error on the description push-to-page in the Send money flow #29673
Conversation
@abdulrahuman5196 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] |
}; | ||
|
||
const defaultProps = { | ||
iou: iouDefaultProps, | ||
selectedTab: '', |
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.
@akinwale Do we even need an Empty string? We can just set the default value as null?
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.
@abdulrahuman5196 I assumed since we're using PropTypes.oneOf
for the type, it had to be a literal value. I guess we can just change the type to PropTypes.string
?
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 assumed since we're using PropTypes.oneOf for the type, it had to be a literal value
I don't have a strong preference here, I did check our code base and we seem to have set null
alone as default value with removing isRequired
and also the way this PR is provided.
I think it would make a difference after TS migration but not ATM in this file I suppose.
So I will review with the current change itself.
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-10-18.at.12.28.17.AM.mp4Mobile Web - ChromeScreen.Recording.2023-10-18.at.12.34.12.AM.mp4Mobile Web - SafariScreen.Recording.2023-10-18.at.12.31.30.AM.mp4DesktopScreen.Recording.2023-10-18.at.12.44.37.AM.mp4iOSScreen.Recording.2023-10-18.at.12.39.40.AM.mp4AndroidScreen.Recording.2023-10-18.at.12.40.32.AM.mp4 |
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.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @youssef-lr
🎀 👀 🎀
C+ Reviewed
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.
LGTM
✋ 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/youssef-lr in version: 1.3.87-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/youssef-lr in version: 1.3.87-0 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.87-12 🚀
|
🚀 Deployed to staging by https://github.com/youssef-lr in version: 1.3.88-0 🚀
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.88-11 🚀
|
Details
Make the selectedTab prop optional and set a default value for empty string since the Send money flow in order to prevent a console error regarding the prop value since it is not embedded within a tab navigator.
Fixed Issues
$ #29296
PROPOSAL: #29296 (comment)
Tests
Offline tests
N/A
QA Steps
Same as tests.
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
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)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)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
29296-android-native.mp4
Android: mWeb Chrome
29296-android-chrome.webm
iOS: Native
29296-ios-native.mp4
iOS: mWeb Safari
29296-ios-safari.mp4
MacOS: Chrome / Safari
29296-web.mp4
MacOS: Desktop
29296-desktop.mp4