File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -100,9 +100,6 @@ export MM_SAMPLE_FEATURE_COUNTER_ENABLED="true"
100100# The endpoint used to submit errors and tracing data to Sentry for dev environment.
101101# export MM_SENTRY_DSN_DEV=
102102
103- # Permissions Settings feature flag specific to UI changes
104- export MM_PERMISSIONS_SETTINGS_V1_ENABLED=""
105-
106103# Earn Variables
107104## Stablecoin Lending
108105export MM_STABLECOIN_LENDING_UI_ENABLED="true"
Original file line number Diff line number Diff line change @@ -96,11 +96,6 @@ jest.mock('../../../../locales/i18n', () => ({
9696 strings : jest . fn ( ( key : string ) => key ) ,
9797} ) ) ;
9898
99- jest . mock ( '../../../util/networks' , ( ) => ( {
100- ...jest . requireActual ( '../../../util/networks' ) ,
101- isPermissionsSettingsV1Enabled : true ,
102- } ) ) ;
103-
10499jest . mock ( '../../UI/Ramp/hooks/useRampsUnifiedV1Enabled' , ( ) => ( {
105100 __esModule : true ,
106101 default : jest . fn ( ( ) => false ) ,
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import Routes from '../../../constants/navigation/Routes';
2525import { strings } from '../../../../locales/i18n' ;
2626import { useAnalytics } from '../../hooks/useAnalytics/useAnalytics' ;
2727import { AccountsMenuSelectorsIDs } from './AccountsMenu.testIds' ;
28- import { isPermissionsSettingsV1Enabled } from '../../../util/networks' ;
2928import useRampsUnifiedV1Enabled from '../../UI/Ramp/hooks/useRampsUnifiedV1Enabled' ;
3029import useRampsUnifiedV2Enabled from '../../UI/Ramp/hooks/useRampsUnifiedV2Enabled' ;
3130import AppConstants from '../../../core/AppConstants' ;
@@ -441,17 +440,15 @@ const AccountsMenu = () => {
441440 />
442441
443442 { /* Permissions Row */ }
444- { isPermissionsSettingsV1Enabled && (
445- < ActionListItem
446- startAccessory = {
447- < Icon name = { IconName . SecurityTick } size = { IconSize . Lg } />
448- }
449- label = { strings ( 'accounts_menu.permissions' ) }
450- endAccessory = { arrowRightIcon }
451- onPress = { onPressPermissions }
452- testID = { AccountsMenuSelectorsIDs . PERMISSIONS }
453- />
454- ) }
443+ < ActionListItem
444+ startAccessory = {
445+ < Icon name = { IconName . SecurityTick } size = { IconSize . Lg } />
446+ }
447+ label = { strings ( 'accounts_menu.permissions' ) }
448+ endAccessory = { arrowRightIcon }
449+ onPress = { onPressPermissions }
450+ testID = { AccountsMenuSelectorsIDs . PERMISSIONS }
451+ />
455452
456453 { /* Networks Row */ }
457454 < ActionListItem
Original file line number Diff line number Diff line change @@ -52,11 +52,6 @@ jest.mock('@react-navigation/native', () => {
5252 } ;
5353} ) ;
5454
55- jest . mock ( '../../../util/networks' , ( ) => ( {
56- ...jest . requireActual ( '../../../util/networks' ) ,
57- isPermissionsSettingsV1Enabled : true ,
58- } ) ) ;
59-
6055jest . mock ( '../../../util/notifications/constants/config' , ( ) => ( {
6156 isNotificationsFeatureEnabled : jest . fn ( ( ) => true ) ,
6257} ) ) ;
Original file line number Diff line number Diff line change @@ -802,9 +802,6 @@ export const getBlockExplorerTxUrl = (
802802export const getIsNetworkOnboarded = ( chainId , networkOnboardedState ) =>
803803 networkOnboardedState [ chainId ] ;
804804
805- export const isPermissionsSettingsV1Enabled =
806- process . env . MM_PERMISSIONS_SETTINGS_V1_ENABLED === 'true' ;
807-
808805// The whitelisted network names for the given chain IDs to prevent showing warnings on Network Settings.
809806export const WHILELIST_NETWORK_NAME = {
810807 [ ChainId . mainnet ] : 'Mainnet' ,
Original file line number Diff line number Diff line change @@ -3493,9 +3493,6 @@ app:
34933493 - opts :
34943494 is_expand : false
34953495 MM_NETWORK_UI_REDESIGN_ENABLED : false
3496- - opts :
3497- is_expand : false
3498- MM_PERMISSIONS_SETTINGS_V1_ENABLED : false
34993496 - opts :
35003497 is_expand : false
35013498 MM_SECURITY_ALERTS_API_ENABLED : true
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ _public_envs: &public_envs # Servers (production)
4040 IS_TEST : ' false'
4141 SEEDLESS_ONBOARDING_ENABLED : ' true'
4242 MM_NOTIFICATIONS_UI_ENABLED : ' true'
43- MM_PERMISSIONS_SETTINGS_V1_ENABLED : ' false'
4443 MM_PERPS_BLOCKED_REGIONS : ' US,CA-ON,GB,BE'
4544 MM_PERPS_HIP3_ALLOWLIST_MARKETS : ' '
4645 MM_PERPS_HIP3_BLOCKLIST_MARKETS : ' '
You can’t perform that action at this time.
0 commit comments