aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-01-30 21:56:33 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-02-05 20:19:55 +0800
commit8a8696f8974a196e12e378cd4bf479a14fb531b9 (patch)
tree32a87247c81b6abb036c2f18fbec419dbe318c31 /ui
parent7bbd6e70393027bbbeecccdef71eaf70aac52c45 (diff)
downloadtangerine-wallet-browser-8a8696f8974a196e12e378cd4bf479a14fb531b9.tar
tangerine-wallet-browser-8a8696f8974a196e12e378cd4bf479a14fb531b9.tar.gz
tangerine-wallet-browser-8a8696f8974a196e12e378cd4bf479a14fb531b9.tar.bz2
tangerine-wallet-browser-8a8696f8974a196e12e378cd4bf479a14fb531b9.tar.lz
tangerine-wallet-browser-8a8696f8974a196e12e378cd4bf479a14fb531b9.tar.xz
tangerine-wallet-browser-8a8696f8974a196e12e378cd4bf479a14fb531b9.tar.zst
tangerine-wallet-browser-8a8696f8974a196e12e378cd4bf479a14fb531b9.zip
Remove "Use old UI" setting
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/pages/settings/settings-tab/settings-tab.component.js33
-rw-r--r--ui/app/components/pages/settings/settings-tab/settings-tab.container.js5
2 files changed, 1 insertions, 37 deletions
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 8cd596423..ce1f72407 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
@@ -46,12 +46,10 @@ export default class SettingsTab extends PureComponent {
delRpcTarget: PropTypes.func,
displayWarning: PropTypes.func,
revealSeedConfirmation: PropTypes.func,
- setFeatureFlagToBeta: PropTypes.func,
showClearApprovalModal: PropTypes.func,
showResetAccountConfirmationModal: PropTypes.func,
warning: PropTypes.string,
history: PropTypes.object,
- isMascara: PropTypes.bool,
updateCurrentLocale: PropTypes.func,
currentLocale: PropTypes.string,
useBlockie: PropTypes.bool,
@@ -338,34 +336,6 @@ export default class SettingsTab extends PureComponent {
)
}
- renderOldUI () {
- const { t } = this.context
- const { setFeatureFlagToBeta } = this.props
-
- return (
- <div className="settings-page__content-row">
- <div className="settings-page__content-item">
- <span>{ t('useOldUI') }</span>
- </div>
- <div className="settings-page__content-item">
- <div className="settings-page__content-item-col">
- <Button
- type="secondary"
- large
- className="settings-tab__button--orange"
- onClick={event => {
- event.preventDefault()
- setFeatureFlagToBeta()
- }}
- >
- { t('useOldUI') }
- </Button>
- </div>
- </div>
- </div>
- )
- }
-
renderResetAccount () {
const { t } = this.context
const { showResetAccountConfirmationModal } = this.props
@@ -523,7 +493,7 @@ export default class SettingsTab extends PureComponent {
}
render () {
- const { warning, isMascara } = this.props
+ const { warning } = this.props
return (
<div className="settings-page__content">
@@ -534,7 +504,6 @@ export default class SettingsTab extends PureComponent {
{ this.renderNewRpcUrl() }
{ this.renderStateLogs() }
{ this.renderSeedWords() }
- { !isMascara && this.renderOldUI() }
{ this.renderResetAccount() }
{ this.renderClearApproval() }
{ this.renderPrivacyOptIn() }
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 d5fd8416a..92f645438 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
@@ -27,14 +27,12 @@ const mapStateToProps = state => {
privacyMode,
} = {},
provider = {},
- isMascara,
currentLocale,
} = metamask
const { useNativeCurrencyAsPrimaryCurrency } = preferencesSelector(state)
return {
warning,
- isMascara,
currentLocale,
currentCurrency,
conversionDate,
@@ -55,9 +53,6 @@ const mapDispatchToProps = dispatch => {
revealSeedConfirmation: () => dispatch(revealSeedConfirmation()),
setUseBlockie: value => dispatch(setUseBlockie(value)),
updateCurrentLocale: key => dispatch(updateCurrentLocale(key)),
- setFeatureFlagToBeta: () => {
- return dispatch(setFeatureFlag('betaUI', false, 'OLD_UI_NOTIFICATION_MODAL'))
- },
setHexDataFeatureFlag: shouldShow => dispatch(setFeatureFlag('sendHexData', shouldShow)),
setPrivacyMode: enabled => dispatch(setFeatureFlag('privacyMode', enabled)),
showResetAccountConfirmationModal: () => dispatch(showModal({ name: 'CONFIRM_RESET_ACCOUNT' })),