Repository navigation
fix: Bank account icon is a green square - #37450
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] |
|
@dukenv0307 you have lint errors. |
|
@puneetlath Fixed it now. |
| title={paymentMethod.formattedSelectedPaymentMethod.title} | ||
| icon={paymentMethod.formattedSelectedPaymentMethod.icon} | ||
| icon={paymentMethod.formattedSelectedPaymentMethod.icon?.icon} | ||
| iconHeight={paymentMethod.formattedSelectedPaymentMethod.icon?.iconHeight} |
There was a problem hiding this comment.
@dukenv0307 Why are we passing iconHeight and iconWidth separately? Its already part of paymentMethod.formattedSelectedPaymentMethod.icon right? Why are we splitting the params and passing?
There was a problem hiding this comment.
Its already part of paymentMethod.formattedSelectedPaymentMethod.icon right
Yes.
Why are we splitting the params and passing?
Do you mean like this?
{icon, iconWidth, iconHeight, iconStyles} = paymentMethod.formattedSelectedPaymentMethod.icon
and then use this to pass into MenuItem
There was a problem hiding this comment.
Sorry, nevermind. Its under conditional rendering. Wouldn't be helpful
|
@dukenv0307 Other than android native, we don't have any video for other platforms? |
|
I'm preparing other screenshots. |
|
@dukenv0307 |
|
|
MenuItem has iconHeight and iconWidth ? Shouldn't that be enough as you had pointed out in the proposal? |
|
@dukenv0307 Any update on this? |
|
@abdulrahuman5196 Sorry missed to fallback iconSize if iconWidth and height are undefined while implementing the PR |
|
updating now. |
|
@dukenv0307 Do let me know once available for re-review |
|
@abdulrahuman5196 Ready for review again and updated other screenshot. |
|
web and desktop don't need screenshot because it only displays delete item when clicking on three-dot. |
@dukenv0307 We can strink it to single page, which will show the popup |
|
@abdulrahuman5196 Do you mean re-size page? |
If you shrink the sides of the window until the LHN hides, you'll see the popup with the icon, yes |
|
@abdulrahuman5196 Updated full screenshot |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-29.at.1.58.46.AM.mp4Android: mWeb ChromeScreen.Recording.2024-02-29.at.1.59.46.AM.mp4iOS: NativeScreen.Recording.2024-02-29.at.1.57.09.AM.mp4iOS: mWeb SafariScreen.Recording.2024-02-29.at.1.57.33.AM.mp4MacOS: Chrome / SafariScreen.Recording.2024-02-29.at.1.50.15.AM.mp4MacOS: DesktopScreen.Recording.2024-02-29.at.1.51.01.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. @Gonals / @puneetlath
🎀 👀 🎀
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. |
fix: Bank account icon is a green square (cherry picked from commit e728878)
|
🚀 Cherry-picked to staging by https://github.com/puneetlath in version: 1.4.44-12 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|

Details
Fixed Issues
$ #37413
PROPOSAL: #37413 (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-29.at.03.14.54.mov
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-02-29.at.03.09.44.mov
iOS: mWeb Safari
Screen.Recording.2024-02-29.at.03.08.44.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-29.at.03.30.21.mov
MacOS: Desktop
Screen.Recording.2024-02-29.at.03.31.39.mov