-
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
[TS migration] Migrate 'SettlementButton.js' component to TypeScript #33866
[TS migration] Migrate 'SettlementButton.js' component to TypeScript #33866
Conversation
@hoangzinh 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] |
Also a kind request, change PR title so it reflects issue title: |
@kubabutkiewicz Hello ) |
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, please merge the newest main
Hello ) |
Yup, I will try to review asap |
@blazejkustra |
@ZhenjaHorbach overall LGTM, but could you help to resolve conflict + perf-test is failed? Thanks |
Done ) |
@AndrewGable |
All good - @hoangzinh, can you give this a quick once over before I merge? |
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.
All goods. Tested as well
TS check failing on main. Caused by this PR |
Sorry |
#35877 |
🚀 Deployed to staging by https://github.com/AndrewGable in version: 1.4.38-0 🚀
|
🚀 Deployed to staging by https://github.com/AndrewGable in version: 1.4.38-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.38-6 🚀
|
@@ -200,14 +182,14 @@ function SettlementButton({ | |||
|
|||
// Put the preferred payment method to the front of the array, so it's shown as default | |||
if (paymentMethod) { | |||
return _.sortBy(buttonOptions, (method) => (method.value === paymentMethod ? 0 : 1)); | |||
return buttonOptions.sort((method) => (method.value === paymentMethod ? 0 : 1)); |
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 caused a regression here #36066, RC- syntax different between Array.sort
and sortBy
Details
Fixed Issues
$ #25100
PROPOSAL: #25100 (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-01-03-at-160854_EbleMEvi.mp4
Android: mWeb Chrome
android-web_4bVb1NIW.mp4
iOS: Native
ios_4Ez0lS3G.mp4
iOS: mWeb Safari
ios_iC6C6JXX.mp4
MacOS: Chrome / Safari
web_frW2qrPs.1.mp4
MacOS: Desktop
desktop_YabzuIQv.mp4