1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Enable mobile sync (#6332)

* enable mobile sync

* remove mobile sync as a preference

* Fix typo
This commit is contained in:
Bruno Barbieri 2019-03-21 15:43:10 -04:00 committed by Dan Finlay
parent 2aaec1d9fb
commit 7287133e15
3 changed files with 2 additions and 9 deletions

View File

@ -6,5 +6,5 @@ One example is our "sync with mobile" feature, which didn't make sense to roll o
To enable features like this, first open the background console, and then you can use the global method `global.setPreference(key, value)`. To enable features like this, first open the background console, and then you can use the global method `global.setPreference(key, value)`.
For example, if the feature flag was a booelan was called `mobileSync`, you might type `setPreference('mobileSync', true)`. For example, if the feature flag was a boolean was called `useNativeCurrencyAsPrimaryCurrency`, you might type `setPreference('useNativeCurrencyAsPrimaryCurrency', true)`.

View File

@ -63,7 +63,6 @@ export default class SettingsTab extends PureComponent {
setUseNativeCurrencyAsPrimaryCurrencyPreference: PropTypes.func, setUseNativeCurrencyAsPrimaryCurrencyPreference: PropTypes.func,
setAdvancedInlineGasFeatureFlag: PropTypes.func, setAdvancedInlineGasFeatureFlag: PropTypes.func,
advancedInlineGas: PropTypes.bool, advancedInlineGas: PropTypes.bool,
mobileSync: PropTypes.bool,
showFiatInTestnets: PropTypes.bool, showFiatInTestnets: PropTypes.bool,
setShowFiatConversionOnTestnetsPreference: PropTypes.func.isRequired, setShowFiatConversionOnTestnetsPreference: PropTypes.func.isRequired,
participateInMetaMetrics: PropTypes.bool, participateInMetaMetrics: PropTypes.bool,
@ -378,11 +377,7 @@ export default class SettingsTab extends PureComponent {
renderMobileSync () { renderMobileSync () {
const { t } = this.context const { t } = this.context
const { history, mobileSync } = this.props const { history } = this.props
if (!mobileSync) {
return
}
return ( return (
<div className="settings-page__content-row"> <div className="settings-page__content-row">

View File

@ -28,7 +28,6 @@ const mapStateToProps = state => {
sendHexData, sendHexData,
privacyMode, privacyMode,
advancedInlineGas, advancedInlineGas,
mobileSync,
} = {}, } = {},
provider = {}, provider = {},
currentLocale, currentLocale,
@ -48,7 +47,6 @@ const mapStateToProps = state => {
privacyMode, privacyMode,
provider, provider,
useNativeCurrencyAsPrimaryCurrency, useNativeCurrencyAsPrimaryCurrency,
mobileSync,
showFiatInTestnets, showFiatInTestnets,
participateInMetaMetrics, participateInMetaMetrics,
} }