|
|
@ -7,7 +7,6 @@ import { Trans, translate } from 'react-i18next' |
|
|
|
import type { T } from 'types/common' |
|
|
|
import { Switch, Route } from 'react-router' |
|
|
|
import type { RouterHistory, Match, Location } from 'react-router' |
|
|
|
import { EXPERIMENTAL_TOOLS_SETTINGS } from 'config/constants' |
|
|
|
import { accountsSelector } from 'reducers/accounts' |
|
|
|
import Pills from 'components/base/Pills' |
|
|
|
import Box from 'components/base/Box' |
|
|
@ -48,6 +47,11 @@ class SettingsPage extends PureComponent<Props, State> { |
|
|
|
label: <Trans i18nKey="settings.tabs.currencies" />, |
|
|
|
value: SectionCurrencies, |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'export', |
|
|
|
label: <Trans i18nKey="settings.tabs.export" />, |
|
|
|
value: SectionExport, |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'about', |
|
|
|
label: <Trans i18nKey="settings.tabs.about" />, |
|
|
@ -60,14 +64,6 @@ class SettingsPage extends PureComponent<Props, State> { |
|
|
|
}, |
|
|
|
] |
|
|
|
|
|
|
|
if (EXPERIMENTAL_TOOLS_SETTINGS) { |
|
|
|
this._items.splice(2, 0, { |
|
|
|
key: 'tool', |
|
|
|
label: 'Experimental Tools', |
|
|
|
value: SectionExport, |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
this.state = { |
|
|
|
tab: this.getCurrentTab({ url: props.match.url, pathname: props.location.pathname }), |
|
|
|
} |
|
|
|