diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-03-29 04:21:53 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-03-29 04:23:50 +0800 |
commit | 58f52b2b8de9efd43896e23ab0ac9972f45bb278 (patch) | |
tree | cb1cca580f1ea1986eeb82b3271a5f013b3e6498 /ui/app/components/pages/settings/settings.js | |
parent | 6f367a5a6b4fb8918405f233293dc3f4840b4a3d (diff) | |
download | tangerine-wallet-browser-58f52b2b8de9efd43896e23ab0ac9972f45bb278.tar.gz tangerine-wallet-browser-58f52b2b8de9efd43896e23ab0ac9972f45bb278.tar.zst tangerine-wallet-browser-58f52b2b8de9efd43896e23ab0ac9972f45bb278.zip |
Fix merge conflicts. Refactor onboarding flow.
Diffstat (limited to 'ui/app/components/pages/settings/settings.js')
-rw-r--r-- | ui/app/components/pages/settings/settings.js | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/ui/app/components/pages/settings/settings.js b/ui/app/components/pages/settings/settings.js index 6ce0556db..219ace651 100644 --- a/ui/app/components/pages/settings/settings.js +++ b/ui/app/components/pages/settings/settings.js @@ -12,7 +12,7 @@ const SimpleDropdown = require('../../dropdowns/simple-dropdown') const ToggleButton = require('react-toggle-button') const { REVEAL_SEED_ROUTE } = require('../../../routes') const { OLD_UI_NETWORK_TYPE } = require('../../../../../app/scripts/config').enums -const t = require('../i18n') +const t = require('../../../../i18n') const getInfuraCurrencyOptions = () => { const sortedCurrencies = infuraCurrencies.objects.sort((a, b) => { @@ -237,6 +237,24 @@ class Settings extends Component { ) } + renderResetAccount () { + const { showResetAccountConfirmationModal } = this.props + + return h('div.settings__content-row', [ + h('div.settings__content-item', t('resetAccount')), + h('div.settings__content-item', [ + h('div.settings__content-item-col', [ + h('button.btn-primary--lg.settings__button--orange', { + onClick (event) { + event.preventDefault() + showResetAccountConfirmationModal() + }, + }, t('resetAccount')), + ]), + ]), + ]) + } + render () { const { warning, isMascara } = this.props |