aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Barbieri <bruno.barbieri@consensys.net>2019-03-22 03:43:10 +0800
committerDan Finlay <542863+danfinlay@users.noreply.github.com>2019-03-22 03:43:10 +0800
commit7287133e15fab22299e07704206e85bc855d1064 (patch)
tree99cd453a9fbaabd84bfe9fde3ee9e54c51ff33b4
parent2aaec1d9fbaa340ee9971278b6fafd1ad49bdbf2 (diff)
downloadtangerine-wallet-browser-7287133e15fab22299e07704206e85bc855d1064.tar
tangerine-wallet-browser-7287133e15fab22299e07704206e85bc855d1064.tar.gz
tangerine-wallet-browser-7287133e15fab22299e07704206e85bc855d1064.tar.bz2
tangerine-wallet-browser-7287133e15fab22299e07704206e85bc855d1064.tar.lz
tangerine-wallet-browser-7287133e15fab22299e07704206e85bc855d1064.tar.xz
tangerine-wallet-browser-7287133e15fab22299e07704206e85bc855d1064.tar.zst
tangerine-wallet-browser-7287133e15fab22299e07704206e85bc855d1064.zip
Enable mobile sync (#6332)
* enable mobile sync * remove mobile sync as a preference * Fix typo
-rw-r--r--docs/secret-preferences.md2
-rw-r--r--ui/app/components/pages/settings/settings-tab/settings-tab.component.js7
-rw-r--r--ui/app/components/pages/settings/settings-tab/settings-tab.container.js2
3 files changed, 2 insertions, 9 deletions
diff --git a/docs/secret-preferences.md b/docs/secret-preferences.md
index f9d01a503..58a4554c4 100644
--- a/docs/secret-preferences.md
+++ b/docs/secret-preferences.md
@@ -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)`.
-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)`.
diff --git a/ui/app/components/pages/settings/settings-tab/settings-tab.component.js b/ui/app/components/pages/settings/settings-tab/settings-tab.component.js
index abddaaee8..ba2e81754 100644
--- a/ui/app/components/pages/settings/settings-tab/settings-tab.component.js
+++ b/ui/app/components/pages/settings/settings-tab/settings-tab.component.js
@@ -63,7 +63,6 @@ export default class SettingsTab extends PureComponent {
setUseNativeCurrencyAsPrimaryCurrencyPreference: PropTypes.func,
setAdvancedInlineGasFeatureFlag: PropTypes.func,
advancedInlineGas: PropTypes.bool,
- mobileSync: PropTypes.bool,
showFiatInTestnets: PropTypes.bool,
setShowFiatConversionOnTestnetsPreference: PropTypes.func.isRequired,
participateInMetaMetrics: PropTypes.bool,
@@ -378,11 +377,7 @@ export default class SettingsTab extends PureComponent {
renderMobileSync () {
const { t } = this.context
- const { history, mobileSync } = this.props
-
- if (!mobileSync) {
- return
- }
+ const { history } = this.props
return (
<div className="settings-page__content-row">
diff --git a/ui/app/components/pages/settings/settings-tab/settings-tab.container.js b/ui/app/components/pages/settings/settings-tab/settings-tab.container.js
index 64c256412..e266c8c9a 100644
--- a/ui/app/components/pages/settings/settings-tab/settings-tab.container.js
+++ b/ui/app/components/pages/settings/settings-tab/settings-tab.container.js
@@ -28,7 +28,6 @@ const mapStateToProps = state => {
sendHexData,
privacyMode,
advancedInlineGas,
- mobileSync,
} = {},
provider = {},
currentLocale,
@@ -48,7 +47,6 @@ const mapStateToProps = state => {
privacyMode,
provider,
useNativeCurrencyAsPrimaryCurrency,
- mobileSync,
showFiatInTestnets,
participateInMetaMetrics,
}