-
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: 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. |
@@ -538,10 +536,14 @@ function WalletPage({bankAccountList = {}, cardList = {}, fundList = {}, isLoadi | |||
{isPopoverBottomMount && ( | |||
<MenuItem | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
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. @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 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-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