Repository navigation
fix: navigate link when state selector - #45153
nkdengineer wants to merge 2 commits into
Conversation
| // Check the route has policyID because getActiveRouteWithoutParams is used in profile page only | ||
| const activeRoute = /[?&]policyID=([^&]+)/.test(Navigation.getActiveRoute()) ? Navigation.getActiveRoute() : Navigation.getActiveRouteWithoutParams(); |
There was a problem hiding this comment.
Let's not do that. The root cause is still unclear.
If we look at the param in the URL path when selecting state, we'll see that &country=AQ (old country code) is there
Why we have the country param in the first place? It was not on the original url
There was a problem hiding this comment.
I will find another solution
There was a problem hiding this comment.
I'll update today
There was a problem hiding this comment.
Why we have the country param in the first place? It was not on the original URL
in here we set country = undefined to ensure the component country is driven by the parent component rather than URL parameters.
When we choose Adress line 1 we should update country params and path here
Navigation.setParams({
country,
})
Navigation.navigate(`${activeRoute}&country=${country}` as Route)
@s77rt what do you think?
|
Can you please close the PR? |
|
Sure |
Details
Fixed Issues
$ #44957
$ #45060
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov