-
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
[Travel] [Refactor] Create a new shared component for AddressPage #41970
[Travel] [Refactor] Create a new shared component for AddressPage #41970
Conversation
@@ -1,9 +1,12 @@ | |||
import {useRoute} from '@react-navigation/native'; | |||
import type {ParamListBase, RouteProp} from '@react-navigation/native'; | |||
import {CONST as COMMON_CONST} from 'expensify-common/lib/CONST'; | |||
import CONST from '@src/CONST'; | |||
|
|||
type CustomParamList = ParamListBase & Record<string, Record<string, string>>; |
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.
What do you think to remove CustomParamList and instead use the type from here (or similar)?
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.
I have changed it a bit, what about how it is done now?
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.
👌
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-05-19.at.2.51.45.in.the.afternoon.movAndroid: mWeb ChromeScreen.Recording.2024-05-19.at.2.10.15.in.the.afternoon.moviOS: NativeScreen.Recording.2024-05-19.at.2.41.31.in.the.afternoon.moviOS: mWeb SafariScreen.Recording.2024-05-19.at.2.15.42.in.the.afternoon.movMacOS: Chrome / SafariScreen.Recording.2024-05-15.at.9.53.08.in.the.morning.movMacOS: DesktopScreen.Recording.2024-05-19.at.2.20.22.in.the.afternoon.mov |
Screen.Recording.2024-05-19.at.2.00.36.in.the.afternoon.movThis is probably out of this PRs scope |
@smelaa and we've a merge conflict. |
Screen.Recording.2024-05-19.at.2.00.36.in.the.afternoon.mov |
@getusha I am not able to reproduce this problem. android.mp4Safari on IOS: ios.mp4Does it happen on main branch or different devices? |
I can reproduce it on main, it's probably an issue from the emulator. |
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.
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!
🚀 Deployed to staging by https://github.com/chiragsalian in version: 1.4.76-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.76-7 🚀
|
Details
Fixed Issues
$ #41965
PROPOSAL:
Tests
To be able to perform steps 6-7 you need to be spotnana travel beta or modify
canUseSpotnanaTravel
function fromPermissions.ts
to return alwaystrue
.Offline tests
N/A
QA Steps
Same as tests
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
android.webm
Android: mWeb Chrome
android_web.webm
iOS: Native
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-05-10.at.13.33.43.mp4
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-05-10.at.13.35.49.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-05-10.at.13.14.39.mov
MacOS: Desktop
Screen.Recording.2024-05-10.at.13.18.15.mov