Skip to content

Commit

Permalink
fixed: opening AddressDetails from the drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-8 committed Dec 20, 2023
1 parent c7df5b4 commit 325116c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/navigation/navigators/AccountNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,21 @@ export default () => (
headerLeft: headerLeft(navigation),
})}
/>
{/*FIXME: AccountAddresses and AddressDetails also exist in CheckoutNavigator, get rid from this duplication */}
<Stack.Screen
name="AccountAddresses"
component={ screens.AccountAddressesPage }
options={{
title: i18n.t('MY_ADDRESSES'),
}}
/>
<Stack.Screen
name="AddressDetails"
component={ screens.AddressDetails }
options={{
title: i18n.t('MY_ADDRESSES'),
}}
/>
<Stack.Screen
name="AccountDetails"
component={ screens.AccountDetailsPage }
Expand Down
1 change: 1 addition & 0 deletions src/navigation/navigators/CheckoutNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ const MainNavigator = () => (
...TransitionPresets.ModalTransition,
}}
/>
{/*FIXME: AccountAddresses and AddressDetails also exist in AccountNavigator, get rid from this duplication */}
<MainStack.Screen
name="AccountAddresses"
component={ screens.AccountAddressesPage }
Expand Down

0 comments on commit 325116c

Please sign in to comment.