fix: console error on the description push-to-page in the Send money flow#29673
fix: console error on the description push-to-page in the Send money flow#29673youssef-lr merged 1 commit intoExpensify:mainfrom
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.
@akinwale Do we even need an Empty string? We can just set the default value as null?
There was a problem hiding this comment.
@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.
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 |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @youssef-lr
🎀 👀 🎀
C+ Reviewed
|
✋ 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 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)/** comment above it */thisproperly 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)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
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