@@ -26,7 +26,7 @@ import {
26
26
import SRPQuiz from '../../../components/app/srp-quiz-modal/SRPQuiz' ;
27
27
import {
28
28
Button ,
29
- BUTTON_SIZES ,
29
+ ButtonSize ,
30
30
Icon ,
31
31
IconSize ,
32
32
IconName ,
@@ -44,6 +44,7 @@ import {
44
44
TextColor ,
45
45
TextVariant ,
46
46
IconColor ,
47
+ AlignItems ,
47
48
} from '../../../helpers/constants/design-system' ;
48
49
import { ADD_POPULAR_CUSTOM_NETWORK } from '../../../helpers/constants/routes' ;
49
50
import {
@@ -177,7 +178,7 @@ export default class SecurityTab extends PureComponent {
177
178
< Button
178
179
data-testid = "reveal-seed-words"
179
180
type = "danger"
180
- size = { BUTTON_SIZES . LG }
181
+ size = { ButtonSize . Lg }
181
182
onClick = { ( event ) => {
182
183
event . preventDefault ( ) ;
183
184
this . context . trackEvent ( {
@@ -1042,8 +1043,44 @@ export default class SecurityTab extends PureComponent {
1042
1043
data-testid = "advanced-setting-show-testnet-conversion"
1043
1044
>
1044
1045
< div className = "settings-page__content-item" >
1045
- < span > { t ( 'basicConfigurationLabel' ) } </ span >
1046
- < div className = "settings-page__content-description" >
1046
+ < Box
1047
+ display = { Display . Flex }
1048
+ justifyContent = { JustifyContent . spaceBetween }
1049
+ alignItems = { AlignItems . center }
1050
+ marginBottom = { 2 }
1051
+ >
1052
+ < Text variant = { TextVariant . headingSm } >
1053
+ { t ( 'basicConfigurationLabel' ) }
1054
+ </ Text >
1055
+ < ToggleButton
1056
+ value = { useExternalServices }
1057
+ onToggle = { ( ) => {
1058
+ if ( useExternalServices ) {
1059
+ // If we are going to be disabling external services, then we want to show the "turn off" warning modal
1060
+ setBasicFunctionalityModalOpen ( ) ;
1061
+ } else {
1062
+ toggleExternalServices ( true ) ;
1063
+ this . context . trackEvent ( {
1064
+ category : MetaMetricsEventCategory . Settings ,
1065
+ event : MetaMetricsEventName . SettingsUpdated ,
1066
+ properties : {
1067
+ settings_group : 'security_privacy' ,
1068
+ settings_type : 'basic_functionality' ,
1069
+ old_value : false ,
1070
+ new_value : true ,
1071
+ // these values will always be set to false
1072
+ // when basic functionality is re-enabled
1073
+ was_notifications_on : false ,
1074
+ was_profile_syncing_on : false ,
1075
+ } ,
1076
+ } ) ;
1077
+ }
1078
+ } }
1079
+ offLabel = { t ( 'off' ) }
1080
+ onLabel = { t ( 'on' ) }
1081
+ />
1082
+ </ Box >
1083
+ < Text marginBottom = { 2 } color = { TextColor . textAlternative } >
1047
1084
{ t ( 'basicConfigurationDescription' , [
1048
1085
< a
1049
1086
href = "https://consensys.io/privacy-policy"
@@ -1054,38 +1091,10 @@ export default class SecurityTab extends PureComponent {
1054
1091
{ t ( 'privacyMsg' ) }
1055
1092
</ a > ,
1056
1093
] ) }
1057
- </ div >
1094
+ </ Text >
1058
1095
</ div >
1059
1096
1060
- < div className = "settings-page__content-item-col" >
1061
- < ToggleButton
1062
- value = { useExternalServices }
1063
- onToggle = { ( ) => {
1064
- if ( useExternalServices ) {
1065
- // If we are going to be disabling external services, then we want to show the "turn off" warning modal
1066
- setBasicFunctionalityModalOpen ( ) ;
1067
- } else {
1068
- toggleExternalServices ( true ) ;
1069
- this . context . trackEvent ( {
1070
- category : MetaMetricsEventCategory . Settings ,
1071
- event : MetaMetricsEventName . SettingsUpdated ,
1072
- properties : {
1073
- settings_group : 'security_privacy' ,
1074
- settings_type : 'basic_functionality' ,
1075
- old_value : false ,
1076
- new_value : true ,
1077
- // these values will always be set to false
1078
- // when basic functionality is re-enabled
1079
- was_notifications_on : false ,
1080
- was_profile_syncing_on : false ,
1081
- } ,
1082
- } ) ;
1083
- }
1084
- } }
1085
- offLabel = { t ( 'off' ) }
1086
- onLabel = { t ( 'on' ) }
1087
- />
1088
- </ div >
1097
+ < div className = "settings-page__content-item-col" > </ div >
1089
1098
</ Box >
1090
1099
) ;
1091
1100
}
0 commit comments