diff options
author | bitpshr <mail@bitpshr.net> | 2018-10-02 08:52:31 +0800 |
---|---|---|
committer | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-11-06 07:07:09 +0800 |
commit | 89b4aa5d62237f36fac9dcce9c546005ec18968b (patch) | |
tree | 38bb13f74680cff733c330b2009eddbf4770a098 /ui/app/components/pages | |
parent | c76c9ca2c86317f902f443db2c5704d4bf6311c0 (diff) | |
download | tangerine-wallet-browser-89b4aa5d62237f36fac9dcce9c546005ec18968b.tar tangerine-wallet-browser-89b4aa5d62237f36fac9dcce9c546005ec18968b.tar.gz tangerine-wallet-browser-89b4aa5d62237f36fac9dcce9c546005ec18968b.tar.bz2 tangerine-wallet-browser-89b4aa5d62237f36fac9dcce9c546005ec18968b.tar.lz tangerine-wallet-browser-89b4aa5d62237f36fac9dcce9c546005ec18968b.tar.xz tangerine-wallet-browser-89b4aa5d62237f36fac9dcce9c546005ec18968b.tar.zst tangerine-wallet-browser-89b4aa5d62237f36fac9dcce9c546005ec18968b.zip |
EIP-1102: Add option to force-enable provider
Diffstat (limited to 'ui/app/components/pages')
-rw-r--r-- | ui/app/components/pages/settings/settings-tab/settings-tab.component.js | 32 | ||||
-rw-r--r-- | ui/app/components/pages/settings/settings-tab/settings-tab.container.js | 1 |
2 files changed, 33 insertions, 0 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 21119086e..95a18d28b 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,6 +46,7 @@ export default class SettingsTab extends PureComponent { revealSeedConfirmation: PropTypes.func, setFeatureFlagToBeta: PropTypes.func, showClearApprovalModal: PropTypes.func, + showForceInjectionModal: PropTypes.func, showResetAccountConfirmationModal: PropTypes.func, warning: PropTypes.string, history: PropTypes.object, @@ -307,6 +308,36 @@ export default class SettingsTab extends PureComponent { ) } + renderForceInjection () { + const { t } = this.context + const { showForceInjectionModal } = this.props + return ( + <div className="settings-page__content-row"> + <div className="settings-page__content-item"> + <span>{ t('exposeAccounts') }</span> + <span className="settings-page__content-description"> + { t('exposeDescription') } + </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() + showForceInjectionModal() + }} + > + { t('exposeAccounts') } + </Button> + </div> + </div> + </div> + ) + } + renderSeedWords () { const { t } = this.context const { history } = this.props @@ -505,6 +536,7 @@ export default class SettingsTab extends PureComponent { { this.renderStateLogs() } { this.renderSeedWords() } { this.renderClearApproval() } + { this.renderForceInjection() } { !isMascara && this.renderOldUI() } { this.renderResetAccount() } { this.renderBlockieOptIn() } 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 2c0739a91..0af62e135 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 @@ -60,6 +60,7 @@ const mapDispatchToProps = dispatch => { return dispatch(setUseNativeCurrencyAsPrimaryCurrencyPreference(value)) }, showClearApprovalModal: () => dispatch(showModal({ name: 'CLEAR_APPROVED_ORIGINS' })), + showForceInjectionModal: () => dispatch(showModal({ name: 'FORCE_INJECTION' })), } } |