diff options
Diffstat (limited to 'ui/app/components/pages/settings/settings-tab')
-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' })), } } |