Browse Source

Rename About => Help

master
meriadec 7 years ago
parent
commit
f72c3d58c4
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 2
      src/components/SettingsPage/ReleaseNotesButton.js
  2. 8
      src/components/SettingsPage/index.js
  3. 20
      src/components/SettingsPage/sections/Help.js
  4. 4
      static/i18n/en/app.yml

2
src/components/SettingsPage/ReleaseNotesButton.js

@ -32,7 +32,7 @@ class ReleaseNotesButton extends PureComponent<Props> {
openModal(MODAL_RELEASES_NOTES, version)
}}
>
{t('app:settings.about.releaseNotesBtn')}
{t('app:settings.help.releaseNotesBtn')}
</Button>
)
}

8
src/components/SettingsPage/index.js

@ -13,7 +13,7 @@ import Pills from 'components/base/Pills'
import Box from 'components/base/Box'
import SectionDisplay from './sections/Display'
import SectionCurrencies from './sections/Currencies'
import SectionAbout from './sections/About'
import SectionHelp from './sections/Help'
import SectionTools from './sections/Tools'
const mapStateToProps = state => ({
@ -48,9 +48,9 @@ class SettingsPage extends PureComponent<Props, State> {
value: SectionCurrencies,
},
{
key: 'about',
label: props.t('app:settings.tabs.about'),
value: SectionAbout,
key: 'help',
label: props.t('app:settings.tabs.help'),
value: SectionHelp,
},
]

20
src/components/SettingsPage/sections/About.js → src/components/SettingsPage/sections/Help.js

@ -25,23 +25,23 @@ type Props = {
t: T,
}
class SectionAbout extends PureComponent<Props> {
class SectionHelp extends PureComponent<Props> {
render() {
const { t } = this.props
const version = __APP_VERSION__
return (
<Section>
<TrackPage category="Settings" name="About" />
<TrackPage category="Settings" name="Help" />
<Header
icon={<IconHelp size={16} />}
title={t('app:settings.tabs.about')}
desc={t('app:settings.about.desc')}
title={t('app:settings.tabs.help')}
desc={t('app:settings.help.desc')}
/>
<Body>
<Row title={t('app:settings.about.version')} desc={`Ledger Live ${version}`}>
<Row title={t('app:settings.help.version')} desc={`Ledger Live ${version}`}>
<ReleaseNotesButton />
</Row>
@ -65,14 +65,14 @@ class SectionAbout extends PureComponent<Props> {
</Row>
<AboutRowItem
title={t('app:settings.about.faq')}
desc={t('app:settings.about.faqDesc')}
title={t('app:settings.help.faq')}
desc={t('app:settings.help.faqDesc')}
url={urls.faq}
/>
<AboutRowItem
title={t('app:settings.about.terms')}
desc={t('app:settings.about.termsDesc')}
title={t('app:settings.help.terms')}
desc={t('app:settings.help.termsDesc')}
url={urls.terms}
/>
</Body>
@ -81,4 +81,4 @@ class SectionAbout extends PureComponent<Props> {
}
}
export default translate()(SectionAbout)
export default translate()(SectionHelp)

4
static/i18n/en/app.yml

@ -310,7 +310,7 @@ settings: # Always ensure descriptions carry full stops (.)
display: General
currencies: Currencies
profile: Profile
about: Help
help: Help
display:
desc: Change settings that affect Ledger Live in general.
language: Display language
@ -354,7 +354,7 @@ settings: # Always ensure descriptions carry full stops (.)
analyticsDesc: Enable analytics of anonymous data to help Ledger improve the user experience. This includes the operating system, language, firmware versions and the number of added accounts.
reportErrors: Report bugs
reportErrorsDesc: Share anonymous usage and diagnostics data to help improve Ledger products, services and security features.
about:
help:
desc: Learn about Ledger Live features or get help.
version: Version
releaseNotesBtn: Details # Close button instead of continue.

Loading…
Cancel
Save