-
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
Fix: Your location button button is displayed on distance request thumbnail #43630
Fix: Your location button button is displayed on distance request thumbnail #43630
Conversation
@hungvu193 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] |
src/components/MapView/MapView.tsx
Outdated
@@ -210,7 +219,8 @@ const MapView = forwardRef<MapViewHandle, ComponentProps>( | |||
defaultSettings={defaultSettings} | |||
// Include centerCoordinate here as well to address the issue of incorrect coordinates | |||
// displayed after the first render when the app's storage is cleared. | |||
centerCoordinate={centerCoordinate} | |||
centerCoordinate={interactive ? centerCoordinate : undefined} |
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.
Can we just add this logic into centerCoordinate
useMemo? Is there any reason to add ternary operator here instead?
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.
@hungvu193 I fixed it in commit.
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-06-14.at.16.51.19.movAndroid: mWeb ChromeiOS: Nativeios.moviOS: mWeb SafarimSafari.movMacOS: Chrome / Safariweb.chrome.movMacOS: Desktopdesktop.mov |
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 🎉
@truph01 We have conflicts here |
Should be ready for your final review @mountiny |
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.
Thanks!
✋ 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/mountiny in version: 9.0.1-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.1-19 🚀
|
Details
Fixed Issues
$ #43330
PROPOSAL: #43330 (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 methodSTYLE.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 and/or tagged@Expensify/design
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-06-13.at.15.00.37.mov
Android: mWeb Chrome
Screen.Recording.2024-06-13.at.15.12.52.mov
iOS: Native
Screen.Recording.2024-06-13.at.14.59.24.mov
iOS: mWeb Safari
Screen.Recording.2024-06-13.at.15.18.33.mov
MacOS: Chrome / Safari
Screen.Recording.2024-06-13.at.11.29.13.mov
MacOS: Desktop
output.mp4