Browse Source

Made the export only visible if experimental tooling flag is on

And removed the non-used tools section
gre-patch-1
Juan Cortes Ross 6 years ago
parent
commit
bce8acfc7e
No known key found for this signature in database GPG Key ID: 34A99C03E9455EB8
  1. 10
      src/components/SettingsPage/index.js
  2. 19
      src/components/SettingsPage/sections/Tools.js

10
src/components/SettingsPage/index.js

@ -16,7 +16,6 @@ import SectionCurrencies from './sections/Currencies'
import SectionHelp from './sections/Help'
import SectionAbout from './sections/About'
import SectionExport from './sections/Export'
import SectionTools from './sections/Tools'
const mapStateToProps = state => ({
accountsCount: accountsSelector(state).length,
@ -49,11 +48,6 @@ 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" />,
@ -67,10 +61,10 @@ class SettingsPage extends PureComponent<Props, State> {
]
if (EXPERIMENTAL_TOOLS_SETTINGS) {
this._items.push({
this._items.splice(2, 0, {
key: 'tool',
label: 'Experimental Tools',
value: SectionTools,
value: SectionExport,
})
}

19
src/components/SettingsPage/sections/Tools.js

@ -1,19 +0,0 @@
// @flow
/* eslint-disable react/jsx-no-literals */
import React, { PureComponent } from 'react'
import { translate } from 'react-i18next'
import Box, { Card } from 'components/base/Box'
class TabProfile extends PureComponent<*, *> {
render() {
return (
<Card flow={3}>
<Box horizontal>Nothing here</Box>
</Card>
)
}
}
export default translate()(TabProfile)
Loading…
Cancel
Save