diff --git a/mobile-app/app/screens/AppNavigator/screens/Portfolio/screens/AddOrEditAddressBookScreen.tsx b/mobile-app/app/screens/AppNavigator/screens/Portfolio/screens/AddOrEditAddressBookScreen.tsx index cb218b7706..0b4813caf3 100644 --- a/mobile-app/app/screens/AppNavigator/screens/Portfolio/screens/AddOrEditAddressBookScreen.tsx +++ b/mobile-app/app/screens/AppNavigator/screens/Portfolio/screens/AddOrEditAddressBookScreen.tsx @@ -28,7 +28,7 @@ import { useToast } from "react-native-toast-notifications"; import { debounce } from "lodash"; import { AddressType, getAddressType } from "@waveshq/walletkit-core"; import * as Clipboard from "expo-clipboard"; -import { DomainType } from "@contexts/DomainContext"; +import { DomainType, useDomainContext } from "@contexts/DomainContext"; import { SettingsParamList } from "../../Settings/SettingsNavigator"; type Props = StackScreenProps; @@ -37,6 +37,7 @@ export function AddOrEditAddressBookScreen({ route, navigation, }: Props): JSX.Element { + const { isEvmFeatureEnabled } = useDomainContext(); const { title, onSaveButtonPress, @@ -281,64 +282,70 @@ export function AddOrEditAddressBookScreen({ contentContainerStyle={tailwind("px-5 pb-16")} style={tailwind("flex-1")} > - - + {isEvmFeatureEnabled && ( - {AddressDomains.map((addressDomain, index) => { - const isChecked = selectedAddressDomainType === addressDomain.value; - return ( - { - setSelectedAddressDomainType(addressDomain.value); - }} - testID={`address_book_address_type_${addressDomain.value}${ - isChecked ? "_checked" : "" - }`} - > - - - {translate( - "screens/AddOrEditAddressBookScreen", - addressDomain.label, - )} - - - ); - })} + + + {AddressDomains.map((addressDomain, index) => { + const isChecked = + selectedAddressDomainType === addressDomain.value; + return ( + { + setSelectedAddressDomainType(addressDomain.value); + }} + testID={`address_book_address_type_${addressDomain.value}${ + isChecked ? "_checked" : "" + }`} + > + + + {translate( + "screens/AddOrEditAddressBookScreen", + addressDomain.label, + )} + + + ); + })} + - + )} {isAddNew ? (