|
|
@ -13,6 +13,8 @@ const ToggleButton = require('react-toggle-button') |
|
|
|
const { REVEAL_SEED_ROUTE } = require('../../../routes') |
|
|
|
const { REVEAL_SEED_ROUTE } = require('../../../routes') |
|
|
|
const locales = require('../../../../../app/_locales/index.json') |
|
|
|
const locales = require('../../../../../app/_locales/index.json') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import Button from '../../button' |
|
|
|
|
|
|
|
|
|
|
|
const getInfuraCurrencyOptions = () => { |
|
|
|
const getInfuraCurrencyOptions = () => { |
|
|
|
const sortedCurrencies = infuraCurrencies.objects.sort((a, b) => { |
|
|
|
const sortedCurrencies = infuraCurrencies.objects.sort((a, b) => { |
|
|
|
return a.quote.name.toLocaleLowerCase().localeCompare(b.quote.name.toLocaleLowerCase()) |
|
|
|
return a.quote.name.toLocaleLowerCase().localeCompare(b.quote.name.toLocaleLowerCase()) |
|
|
@ -241,7 +243,10 @@ class Settings extends Component { |
|
|
|
]), |
|
|
|
]), |
|
|
|
h('div.settings__content-item', [ |
|
|
|
h('div.settings__content-item', [ |
|
|
|
h('div.settings__content-item-col', [ |
|
|
|
h('div.settings__content-item-col', [ |
|
|
|
h('button.btn-primary.btn--large.settings__button', { |
|
|
|
h(Button, { |
|
|
|
|
|
|
|
type: 'primary', |
|
|
|
|
|
|
|
large: true, |
|
|
|
|
|
|
|
className: 'settings__button', |
|
|
|
onClick (event) { |
|
|
|
onClick (event) { |
|
|
|
window.logStateString((err, result) => { |
|
|
|
window.logStateString((err, result) => { |
|
|
|
if (err) { |
|
|
|
if (err) { |
|
|
@ -266,7 +271,10 @@ class Settings extends Component { |
|
|
|
h('div.settings__content-item', this.context.t('revealSeedWords')), |
|
|
|
h('div.settings__content-item', this.context.t('revealSeedWords')), |
|
|
|
h('div.settings__content-item', [ |
|
|
|
h('div.settings__content-item', [ |
|
|
|
h('div.settings__content-item-col', [ |
|
|
|
h('div.settings__content-item-col', [ |
|
|
|
h('button.btn-primary.btn--large.settings__button--red', { |
|
|
|
h(Button, { |
|
|
|
|
|
|
|
type: 'primary', |
|
|
|
|
|
|
|
large: true, |
|
|
|
|
|
|
|
className: 'settings__button--red', |
|
|
|
onClick: event => { |
|
|
|
onClick: event => { |
|
|
|
event.preventDefault() |
|
|
|
event.preventDefault() |
|
|
|
history.push(REVEAL_SEED_ROUTE) |
|
|
|
history.push(REVEAL_SEED_ROUTE) |
|
|
@ -286,7 +294,10 @@ class Settings extends Component { |
|
|
|
h('div.settings__content-item', this.context.t('useOldUI')), |
|
|
|
h('div.settings__content-item', this.context.t('useOldUI')), |
|
|
|
h('div.settings__content-item', [ |
|
|
|
h('div.settings__content-item', [ |
|
|
|
h('div.settings__content-item-col', [ |
|
|
|
h('div.settings__content-item-col', [ |
|
|
|
h('button.btn-primary.btn--large.settings__button--orange', { |
|
|
|
h(Button, { |
|
|
|
|
|
|
|
type: 'primary', |
|
|
|
|
|
|
|
large: true, |
|
|
|
|
|
|
|
className: 'settings__button--orange', |
|
|
|
onClick (event) { |
|
|
|
onClick (event) { |
|
|
|
event.preventDefault() |
|
|
|
event.preventDefault() |
|
|
|
setFeatureFlagToBeta() |
|
|
|
setFeatureFlagToBeta() |
|
|
@ -305,7 +316,10 @@ class Settings extends Component { |
|
|
|
h('div.settings__content-item', this.context.t('resetAccount')), |
|
|
|
h('div.settings__content-item', this.context.t('resetAccount')), |
|
|
|
h('div.settings__content-item', [ |
|
|
|
h('div.settings__content-item', [ |
|
|
|
h('div.settings__content-item-col', [ |
|
|
|
h('div.settings__content-item-col', [ |
|
|
|
h('button.btn-primary.btn--large.settings__button--orange', { |
|
|
|
h(Button, { |
|
|
|
|
|
|
|
type: 'primary', |
|
|
|
|
|
|
|
large: true, |
|
|
|
|
|
|
|
className: 'settings__button--orange', |
|
|
|
onClick (event) { |
|
|
|
onClick (event) { |
|
|
|
event.preventDefault() |
|
|
|
event.preventDefault() |
|
|
|
showResetAccountConfirmationModal() |
|
|
|
showResetAccountConfirmationModal() |
|
|
|