-
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
Change address state to use value instead of default value #48435
Change address state to use value instead of default value #48435
Conversation
@aimane-chnaif 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] |
import type {Country} from '@src/CONST'; | ||
import CONST from '@src/CONST'; |
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's this change for?
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.
Nothing has changed; this is just a rearrangement that occurred when the new import was introduced and the file was saved (auto-format)
@@ -192,7 +193,7 @@ function AddressForm({ | |||
<InputWrapper | |||
InputComponent={StateSelector} | |||
inputID={INPUT_IDS.STATE} | |||
defaultValue={state} | |||
value={state as State} |
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.
We should avoid typecast but I see it's already existing pattern:
value={values?.state as State} |
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.
agree its used in another file that's why i followed the same pattern
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb Chromemchrome.mp4iOS: Nativeios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
Looks like "Verify that ..." is missing in Tests Steps |
@abzokhattab bump ^ |
ops missed this step 😅 thanks for the reminder |
✋ 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/techievivek in version: 9.0.30-0 🚀
|
Details
Fixed Issues
$ #47616
PROPOSAL: #47616 (comment)
Tests
United States
.Offline tests
Same as tests
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
Screen.Recording.2024-09-03.at.12.17.43.AM.mov
Android: mWeb Chrome
Screen.Recording.2024-09-03.at.12.38.10.AM.mov
iOS: Native
Screen.Recording.2024-09-03.at.12.17.43.AM.mov
iOS: mWeb Safari
Screen.Recording.2024-09-03.at.12.38.10.AM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-09-03.at.12.13.01.AM.mov
MacOS: Desktop
Screen.Recording.2024-09-03.at.12.26.17.AM.mov