Browse Source

Make export section visible without flags

gre-patch-1
Gaëtan Renaudeau 6 years ago
parent
commit
9ccbfd663e
No known key found for this signature in database GPG Key ID: 7B66B85F042E5451
  1. 14
      src/components/SettingsPage/index.js
  2. 1
      src/config/constants.js

14
src/components/SettingsPage/index.js

@ -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 }),
}

1
src/config/constants.js

@ -84,7 +84,6 @@ export const DISABLE_ACTIVITY_INDICATORS = boolFromEnv('DISABLE_ACTIVITY_INDICAT
export const EXPERIMENTAL_CENTER_MODAL = boolFromEnv('EXPERIMENTAL_CENTER_MODAL')
export const EXPERIMENTAL_FIRMWARE_UPDATE = boolFromEnv('EXPERIMENTAL_FIRMWARE_UPDATE')
export const EXPERIMENTAL_HTTP_ON_RENDERER = boolFromEnv('EXPERIMENTAL_HTTP_ON_RENDERER')
export const EXPERIMENTAL_TOOLS_SETTINGS = boolFromEnv('EXPERIMENTAL_TOOLS_SETTINGS')
export const EXPERIMENTAL_MARKET_INDICATOR_SETTINGS = boolFromEnv(
'EXPERIMENTAL_MARKET_INDICATOR_SETTINGS',
)

Loading…
Cancel
Save