Skip to content
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

Update account settings/profile #35662

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
67a7d8c
refactor section styling
kosmydel Feb 1, 2024
ce7523d
new Profile page designs
kosmydel Feb 1, 2024
e98f871
Add title styles and spanish translation
filip-solecki Feb 2, 2024
5acf846
Apply styles to both sections
filip-solecki Feb 2, 2024
d5e12f4
Merge branch 'main' into update-account-settings/profile
filip-solecki Feb 2, 2024
b8b5976
Fix fontSize and padding
filip-solecki Feb 2, 2024
1160e20
Make title bold
filip-solecki Feb 2, 2024
e679d5d
Fix childrenStyles
filip-solecki Feb 2, 2024
c006060
Merge branch 'main' into update-account-settings/profile
filip-solecki Feb 2, 2024
34fe83b
redesign preferences page
kosmydel Feb 2, 2024
9e124d3
Merge branch 'Expensify:main' into update-account-settings/profile
kosmydel Feb 5, 2024
afc7011
Revert "redesign preferences page"
kosmydel Feb 5, 2024
65f460c
Revert unnecessary deleted function
filip-solecki Feb 5, 2024
ad0a03c
Fix Personal Information goBack route
filip-solecki Feb 5, 2024
ce8ecb6
Remove PersonalDetailsPage
filip-solecki Feb 5, 2024
beab06a
Merge branch 'Expensify:main' into update-account-settings/profile
kosmydel Feb 5, 2024
766c54a
Remove personal-details from all profile routes
filip-solecki Feb 5, 2024
366cb8c
Remove personal-details page naming
filip-solecki Feb 6, 2024
e7b1214
Merge branch 'main' into update-account-settings/profile
filip-solecki Feb 6, 2024
33608a0
Fix typo
filip-solecki Feb 6, 2024
0329001
Merge branch 'main' into update-account-settings/profile
filip-solecki Feb 6, 2024
09fa75d
Merge branch 'main' into update-account-settings/profile
filip-solecki Feb 6, 2024
5ee8d9e
Merge branch 'main' into update-account-settings/profile
filip-solecki Feb 6, 2024
be9540c
Merge branch 'Expensify:main' into update-account-settings/profile
kosmydel Feb 6, 2024
c0127ee
Merge branch 'Expensify:main' into update-account-settings/profile
kosmydel Feb 6, 2024
7639dad
Merge branch 'main' into update-account-settings/profile
filip-solecki Feb 6, 2024
4430320
Merge branch 'main' into update-account-settings/profile
filip-solecki Feb 7, 2024
25cd75f
Merge branch 'Expensify:main' into update-account-settings/profile
kosmydel Feb 7, 2024
bc774da
Fix goBack
filip-solecki Feb 7, 2024
99ba948
Update submit navigation
filip-solecki Feb 7, 2024
3f7cd92
Merge branch 'main' into update-account-settings/profile
filip-solecki Feb 7, 2024
c576325
Merge branch 'main' into update-account-settings/profile
filip-solecki Feb 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contributingGuides/NAVIGATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ When creating RHP flows, you have to remember a couple things:

- Since you can deeplink to different pages inside the RHP navigator, it is important to provide the possibility for the user to properly navigate back from any page with UP press (`HeaderWithBackButton` component).

- An example can be deeplinking to `/settings/profile/personal-details`. From there, when pressing the UP button, you should navigate to `/settings/profile`, so in order for it to work, you should provide the correct route in `onBackButtonPress` prop of `HeaderWithBackButton` (`Navigation.goBack(ROUTES.SETTINGS_PROFILE)` in this example).
- An example can be deeplinking to `/settings/profile/timezone/select`. From there, when pressing the UP button, you should navigate to `/settings/profile/timezone`, so in order for it to work, you should provide the correct route in `onBackButtonPress` prop of `HeaderWithBackButton` (`Navigation.goBack(ROUTES.SETTINGS_PROFILE)` in this example).

- We use a custom `goBack` function to handle the browser and the `react-navigation` history stack. Under the hood, it resolves to either replacing the current screen with the one we navigate to (deeplinking scenario) or just going back if we reached the current page by navigating in App (pops the screen). It ensures the requested behaviors on web, which is navigating back to the place from where you deeplinked when going into the RHP flow by it.

Expand Down
13 changes: 6 additions & 7 deletions src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,12 @@ const ROUTES = {
route: 'settings/wallet/card/:domain/activate',
getRoute: (domain: string) => `settings/wallet/card/${domain}/activate` as const,
},
SETTINGS_PERSONAL_DETAILS: 'settings/profile/personal-details',
SETTINGS_PERSONAL_DETAILS_LEGAL_NAME: 'settings/profile/personal-details/legal-name',
SETTINGS_PERSONAL_DETAILS_DATE_OF_BIRTH: 'settings/profile/personal-details/date-of-birth',
SETTINGS_PERSONAL_DETAILS_ADDRESS: 'settings/profile/personal-details/address',
SETTINGS_PERSONAL_DETAILS_ADDRESS_COUNTRY: {
route: 'settings/profile/personal-details/address/country',
getRoute: (country: string, backTo?: string) => getUrlWithBackToParam(`settings/profile/personal-details/address/country?country=${country}`, backTo),
SETTINGS_LEGAL_NAME: 'settings/profile/legal-name',
SETTINGS_DATE_OF_BIRTH: 'settings/profile/date-of-birth',
SETTINGS_ADDRESS: 'settings/profile/address',
SETTINGS_ADDRESS_COUNTRY: {
route: 'settings/profile/address/country',
getRoute: (country: string, backTo?: string) => getUrlWithBackToParam(`settings/profile/address/country?country=${country}`, backTo),
},
SETTINGS_CONTACT_METHODS: {
route: 'settings/profile/contact-methods',
Expand Down
12 changes: 4 additions & 8 deletions src/SCREENS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,10 @@ const SCREENS = {
PRONOUNS: 'Settings_Pronouns',
TIMEZONE: 'Settings_Timezone',
TIMEZONE_SELECT: 'Settings_Timezone_Select',

PERSONAL_DETAILS: {
INITIAL: 'Settings_PersonalDetails_Initial',
LEGAL_NAME: 'Settings_PersonalDetails_LegalName',
DATE_OF_BIRTH: 'Settings_PersonalDetails_DateOfBirth',
ADDRESS: 'Settings_PersonalDetails_Address',
ADDRESS_COUNTRY: 'Settings_PersonalDetails_Address_Country',
},
LEGAL_NAME: 'Settings_LegalName',
DATE_OF_BIRTH: 'Settings_DateOfBirth',
ADDRESS: 'Settings_Address',
ADDRESS_COUNTRY: 'Settings_Address_Country',
},

PREFERENCES: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/CountrySelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function CountrySelector({errorText = '', value: countryCode, onInputChange}: Co
description={translate('common.country')}
onPress={() => {
const activeRoute = Navigation.getActiveRouteWithoutParams();
Navigation.navigate(ROUTES.SETTINGS_PERSONAL_DETAILS_ADDRESS_COUNTRY.getRoute(countryCode ?? '', activeRoute));
Navigation.navigate(ROUTES.SETTINGS_ADDRESS_COUNTRY.getRoute(countryCode ?? '', activeRoute));
}}
/>
<View style={styles.ml5}>
Expand Down
12 changes: 6 additions & 6 deletions src/components/Section/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import type {StyleProp, ViewStyle} from 'react-native';
import type {StyleProp, TextStyle, ViewStyle} from 'react-native';
import {View} from 'react-native';
import type {ValueOf} from 'type-fest';
import Lottie from '@components/Lottie';
Expand Down Expand Up @@ -42,8 +42,8 @@ type SectionProps = ChildrenProps & {
/** Customize the Section container */
containerStyles?: StyleProp<ViewStyle>;

/** Customize the Section container */
titleStyles?: StyleProp<ViewStyle>;
/** Customize the Section title */
titleStyles?: StyleProp<TextStyle>;

/** Customize the Section container */
subtitleStyles?: StyleProp<ViewStyle>;
Expand Down Expand Up @@ -114,9 +114,9 @@ function Section({
</View>
)}
<View style={[styles.w100, isCentralPane && (isSmallScreenWidth ? styles.p5 : styles.p8)]}>
<View style={[styles.flexRow, styles.alignItemsCenter, styles.w100, cardLayout === CARD_LAYOUT.ICON_ON_TOP && styles.mh1, titleStyles]}>
<View style={[styles.flexRow, styles.alignItemsCenter, styles.w100, cardLayout === CARD_LAYOUT.ICON_ON_TOP && styles.mh1]}>
<View style={[styles.flexShrink1]}>
<Text style={[styles.textHeadline, styles.cardSectionTitle]}>{title}</Text>
<Text style={[styles.textHeadline, styles.cardSectionTitle, titleStyles]}>{title}</Text>
</View>
{cardLayout === CARD_LAYOUT.ICON_ON_RIGHT && (
<IconSection
Expand All @@ -127,7 +127,7 @@ function Section({
</View>

{!!subtitle && (
<View style={[styles.flexRow, styles.alignItemsCenter, styles.w100, cardLayout === CARD_LAYOUT.ICON_ON_TOP ? [styles.mt1, styles.mh1] : styles.mt4, subtitleStyles]}>
<View style={[styles.flexRow, styles.alignItemsCenter, styles.w100, cardLayout === CARD_LAYOUT.ICON_ON_TOP ? [styles.mt1, styles.mh1] : styles.mt2, subtitleStyles]}>
<Text style={[styles.textNormal, subtitleMuted && styles.colorMuted]}>{subtitle}</Text>
</View>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/usePrivatePersonalDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ export default function usePrivatePersonalDetails() {
return;
}

PersonalDetails.openPersonalDetailsPage();
PersonalDetails.openPersonalDetails();
}, [network?.isOffline]);
}
8 changes: 8 additions & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,14 @@ export default {
offline: 'Offline',
syncing: 'Syncing',
profileAvatar: 'Profile avatar',
publicSection: {
title: 'Public',
subtitle: 'These details are displayed on your public profile, available for people to see.',
},
privateSection: {
title: 'Private',
subtitle: 'These details are used for travel and payments. They are never shown on your public profile.',
},
},
loungeAccessPage: {
loungeAccess: 'Lounge access',
Expand Down
8 changes: 8 additions & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,14 @@ export default {
offline: 'Desconectado',
syncing: 'Sincronizando',
profileAvatar: 'Perfil avatar',
publicSection: {
title: 'Público',
subtitle: 'Estos detalles se muestran en tu perfil público, a disposición de los demás.',
},
privateSection: {
title: 'Privada',
subtitle: 'Estos detalles se utilizan para viajes y pagos. Nunca se mostrarán en tu perfil público.',
},
},
loungeAccessPage: {
loungeAccess: 'Acceso a la sala vip',
Expand Down
4 changes: 2 additions & 2 deletions src/libs/API/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ const READ_COMMANDS = {
OPEN_WORKSPACE_VIEW: 'OpenWorkspaceView',
GET_MAPBOX_ACCESS_TOKEN: 'GetMapboxAccessToken',
OPEN_PAYMENTS_PAGE: 'OpenPaymentsPage',
OPEN_PERSONAL_DETAILS_PAGE: 'OpenPersonalDetailsPage',
OPEN_PERSONAL_DETAILS: 'OpenPersonalDetailsPage',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mountiny - I meant this line, cause key: OpenPersonalDetailsPage should probably be changed to OpenPersonalDetails or something not including 'Page' as there is no longer such page

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah we would have to change that but I think this is not necessary it still makes sense so not worth it

OPEN_PUBLIC_PROFILE_PAGE: 'OpenPublicProfilePage',
OPEN_PLAID_BANK_LOGIN: 'OpenPlaidBankLogin',
OPEN_PLAID_BANK_ACCOUNT_SELECTOR: 'OpenPlaidBankAccountSelector',
Expand Down Expand Up @@ -321,7 +321,7 @@ type ReadCommandParameters = {
[READ_COMMANDS.OPEN_WORKSPACE_VIEW]: EmptyObject;
[READ_COMMANDS.GET_MAPBOX_ACCESS_TOKEN]: EmptyObject;
[READ_COMMANDS.OPEN_PAYMENTS_PAGE]: EmptyObject;
[READ_COMMANDS.OPEN_PERSONAL_DETAILS_PAGE]: EmptyObject;
[READ_COMMANDS.OPEN_PERSONAL_DETAILS]: EmptyObject;
[READ_COMMANDS.OPEN_PUBLIC_PROFILE_PAGE]: Parameters.OpenPublicProfilePageParams;
[READ_COMMANDS.OPEN_PLAID_BANK_LOGIN]: Parameters.OpenPlaidBankLoginParams;
[READ_COMMANDS.OPEN_PLAID_BANK_ACCOUNT_SELECTOR]: Parameters.OpenPlaidBankAccountSelectorParams;
Expand Down
9 changes: 4 additions & 5 deletions src/libs/Navigation/AppNavigator/ModalStackNavigators.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,10 @@ const SettingsModalStackNavigator = createModalStackNavigator<SettingsNavigatorP
[SCREENS.SETTINGS.PROFILE.DISPLAY_NAME]: () => require('../../../pages/settings/Profile/DisplayNamePage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.TIMEZONE]: () => require('../../../pages/settings/Profile/TimezoneInitialPage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.TIMEZONE_SELECT]: () => require('../../../pages/settings/Profile/TimezoneSelectPage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.INITIAL]: () => require('../../../pages/settings/Profile/PersonalDetails/PersonalDetailsInitialPage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.LEGAL_NAME]: () => require('../../../pages/settings/Profile/PersonalDetails/LegalNamePage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.DATE_OF_BIRTH]: () => require('../../../pages/settings/Profile/PersonalDetails/DateOfBirthPage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.ADDRESS]: () => require('../../../pages/settings/Profile/PersonalDetails/AddressPage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.ADDRESS_COUNTRY]: () => require('../../../pages/settings/Profile/PersonalDetails/CountrySelectionPage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.LEGAL_NAME]: () => require('../../../pages/settings/Profile/PersonalDetails/LegalNamePage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.DATE_OF_BIRTH]: () => require('../../../pages/settings/Profile/PersonalDetails/DateOfBirthPage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.ADDRESS]: () => require('../../../pages/settings/Profile/PersonalDetails/AddressPage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.ADDRESS_COUNTRY]: () => require('../../../pages/settings/Profile/PersonalDetails/CountrySelectionPage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.CONTACT_METHODS]: () => require('../../../pages/settings/Profile/Contacts/ContactMethodsPage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.CONTACT_METHOD_DETAILS]: () => require('../../../pages/settings/Profile/Contacts/ContactMethodDetailsPage').default as React.ComponentType,
[SCREENS.SETTINGS.PROFILE.NEW_CONTACT_METHOD]: () => require('../../../pages/settings/Profile/Contacts/NewContactMethodPage').default as React.ComponentType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ const FULL_SCREEN_TO_RHP_MAPPING: Partial<Record<FullScreenName, string[]>> = {
SCREENS.SETTINGS.PROFILE.PRONOUNS,
SCREENS.SETTINGS.PROFILE.TIMEZONE,
SCREENS.SETTINGS.PROFILE.TIMEZONE_SELECT,
SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.INITIAL,
SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.LEGAL_NAME,
SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.DATE_OF_BIRTH,
SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.ADDRESS,
SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.ADDRESS_COUNTRY,
SCREENS.SETTINGS.PROFILE.LEGAL_NAME,
SCREENS.SETTINGS.PROFILE.DATE_OF_BIRTH,
SCREENS.SETTINGS.PROFILE.ADDRESS,
SCREENS.SETTINGS.PROFILE.ADDRESS_COUNTRY,
],
[SCREENS.SETTINGS.PREFERENCES.ROOT]: [SCREENS.SETTINGS.PREFERENCES.PRIORITY_MODE, SCREENS.SETTINGS.PREFERENCES.LANGUAGE, SCREENS.SETTINGS.PREFERENCES.THEME],
[SCREENS.SETTINGS.WALLET.ROOT]: [
Expand Down
20 changes: 8 additions & 12 deletions src/libs/Navigation/linkingConfig/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,24 +190,20 @@ const config: LinkingOptions<RootStackParamList>['config'] = {
path: ROUTES.SETTINGS_NEW_CONTACT_METHOD.route,
exact: true,
},
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.INITIAL]: {
path: ROUTES.SETTINGS_PERSONAL_DETAILS,
[SCREENS.SETTINGS.PROFILE.LEGAL_NAME]: {
path: ROUTES.SETTINGS_LEGAL_NAME,
exact: true,
},
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.LEGAL_NAME]: {
path: ROUTES.SETTINGS_PERSONAL_DETAILS_LEGAL_NAME,
[SCREENS.SETTINGS.PROFILE.DATE_OF_BIRTH]: {
path: ROUTES.SETTINGS_DATE_OF_BIRTH,
exact: true,
},
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.DATE_OF_BIRTH]: {
path: ROUTES.SETTINGS_PERSONAL_DETAILS_DATE_OF_BIRTH,
[SCREENS.SETTINGS.PROFILE.ADDRESS]: {
path: ROUTES.SETTINGS_ADDRESS,
exact: true,
},
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.ADDRESS]: {
path: ROUTES.SETTINGS_PERSONAL_DETAILS_ADDRESS,
exact: true,
},
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.ADDRESS_COUNTRY]: {
path: ROUTES.SETTINGS_PERSONAL_DETAILS_ADDRESS_COUNTRY.route,
[SCREENS.SETTINGS.PROFILE.ADDRESS_COUNTRY]: {
path: ROUTES.SETTINGS_ADDRESS_COUNTRY.route,
exact: true,
},
[SCREENS.SETTINGS.TWO_FACTOR_AUTH]: {
Expand Down
9 changes: 4 additions & 5 deletions src/libs/Navigation/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,10 @@ type SettingsNavigatorParamList = {
[SCREENS.SETTINGS.PROFILE.DISPLAY_NAME]: undefined;
[SCREENS.SETTINGS.PROFILE.TIMEZONE]: undefined;
[SCREENS.SETTINGS.PROFILE.TIMEZONE_SELECT]: undefined;
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.INITIAL]: undefined;
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.LEGAL_NAME]: undefined;
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.DATE_OF_BIRTH]: undefined;
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.ADDRESS]: undefined;
[SCREENS.SETTINGS.PROFILE.PERSONAL_DETAILS.ADDRESS_COUNTRY]: undefined;
[SCREENS.SETTINGS.PROFILE.LEGAL_NAME]: undefined;
[SCREENS.SETTINGS.PROFILE.DATE_OF_BIRTH]: undefined;
[SCREENS.SETTINGS.PROFILE.ADDRESS]: undefined;
[SCREENS.SETTINGS.PROFILE.ADDRESS_COUNTRY]: undefined;
[SCREENS.SETTINGS.PROFILE.CONTACT_METHODS]: undefined;
[SCREENS.SETTINGS.PROFILE.CONTACT_METHOD_DETAILS]: undefined;
[SCREENS.SETTINGS.PROFILE.NEW_CONTACT_METHOD]: undefined;
Expand Down
12 changes: 6 additions & 6 deletions src/libs/actions/PersonalDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function updateLegalName(legalFirstName: string, legalLastName: string) {
],
});

Navigation.goBack(ROUTES.SETTINGS_PERSONAL_DETAILS);
Navigation.goBack();
}

/**
Expand All @@ -133,7 +133,7 @@ function updateDateOfBirth({dob}: DateOfBirthForm) {
],
});

Navigation.goBack(ROUTES.SETTINGS_PERSONAL_DETAILS);
Navigation.goBack();
}

function updateAddress(street: string, street2: string, city: string, state: string, zip: string, country: string) {
Expand Down Expand Up @@ -170,7 +170,7 @@ function updateAddress(street: string, street2: string, city: string, state: str
],
});

Navigation.goBack(ROUTES.SETTINGS_PERSONAL_DETAILS);
Navigation.goBack();
}

/**
Expand Down Expand Up @@ -241,7 +241,7 @@ function updateSelectedTimezone(selectedTimezone: SelectedTimezone) {
/**
* Fetches additional personal data like legal name, date of birth, address
*/
function openPersonalDetailsPage() {
function openPersonalDetails() {
const optimisticData: OnyxUpdate[] = [
{
onyxMethod: Onyx.METHOD.MERGE,
Expand Down Expand Up @@ -272,7 +272,7 @@ function openPersonalDetailsPage() {
},
];

API.read(READ_COMMANDS.OPEN_PERSONAL_DETAILS_PAGE, {}, {optimisticData, successData, failureData});
API.read(READ_COMMANDS.OPEN_PERSONAL_DETAILS, {}, {optimisticData, successData, failureData});
}

/**
Expand Down Expand Up @@ -455,7 +455,7 @@ export {
clearAvatarErrors,
deleteAvatar,
getPrivatePersonalDetails,
openPersonalDetailsPage,
openPersonalDetails,
openPublicProfilePage,
updateAddress,
updateAutomaticTimezone,
Expand Down
3 changes: 1 addition & 2 deletions src/pages/settings/Profile/PersonalDetails/AddressPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import useThemeStyles from '@hooks/useThemeStyles';
import Navigation from '@libs/Navigation/Navigation';
import * as PersonalDetails from '@userActions/PersonalDetails';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';

const propTypes = {
/* Onyx Props */
Expand Down Expand Up @@ -122,7 +121,7 @@ function AddressPage({privatePersonalDetails, route}) {
<HeaderWithBackButton
title={translate('privatePersonalDetails.address')}
shouldShowBackButton
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_PERSONAL_DETAILS)}
onBackButtonPress={() => Navigation.goBack()}
/>
{isLoadingPersonalDetails ? (
<FullscreenLoadingIndicator style={[styles.flex1, styles.pRelative]} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import * as ValidationUtils from '@libs/ValidationUtils';
import * as PersonalDetails from '@userActions/PersonalDetails';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';

const propTypes = {
/* Onyx Props */
Expand Down Expand Up @@ -69,7 +68,7 @@ function DateOfBirthPage({translate, privatePersonalDetails}) {
>
<HeaderWithBackButton
title={translate('common.dob')}
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_PERSONAL_DETAILS)}
onBackButtonPress={() => Navigation.goBack()}
/>
{isLoadingPersonalDetails ? (
<FullscreenLoadingIndicator style={[styles.flex1, styles.pRelative]} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import * as ValidationUtils from '@libs/ValidationUtils';
import * as PersonalDetails from '@userActions/PersonalDetails';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';

const propTypes = {
/* Onyx Props */
Expand Down Expand Up @@ -90,7 +89,7 @@ function LegalNamePage(props) {
>
<HeaderWithBackButton
title={props.translate('privatePersonalDetails.legalName')}
onBackButtonPress={() => Navigation.goBack(ROUTES.SETTINGS_PERSONAL_DETAILS)}
onBackButtonPress={() => Navigation.goBack()}
/>
{isLoadingPersonalDetails ? (
<FullscreenLoadingIndicator style={[styles.flex1, styles.pRelative]} />
Expand Down
Loading
Loading