|
@ -2,11 +2,16 @@ |
|
|
|
|
|
|
|
|
import React, { PureComponent } from 'react' |
|
|
import React, { PureComponent } from 'react' |
|
|
import { shell } from 'electron' |
|
|
import { shell } from 'electron' |
|
|
|
|
|
import { connect } from 'react-redux' |
|
|
|
|
|
|
|
|
import type { T } from 'types/common' |
|
|
import type { T } from 'types/common' |
|
|
|
|
|
|
|
|
import IconHelp from 'icons/Help' |
|
|
import IconHelp from 'icons/Help' |
|
|
import IconExternalLink from 'icons/ExternalLink' |
|
|
import IconExternalLink from 'icons/ExternalLink' |
|
|
|
|
|
import Button from 'components/base/Button' |
|
|
|
|
|
|
|
|
|
|
|
import { openModal } from 'reducers/modals' |
|
|
|
|
|
import { MODAL_RELEASES_NOTES } from 'config/constants' |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
SettingsSection as Section, |
|
|
SettingsSection as Section, |
|
@ -17,13 +22,20 @@ import { |
|
|
|
|
|
|
|
|
type Props = { |
|
|
type Props = { |
|
|
t: T, |
|
|
t: T, |
|
|
|
|
|
openModal: Function, |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const mapDispatchToProps = { |
|
|
|
|
|
openModal, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
class SectionAbout extends PureComponent<Props> { |
|
|
class SectionAbout extends PureComponent<Props> { |
|
|
handleOpenLink = (url: string) => () => shell.openExternal(url) |
|
|
handleOpenLink = (url: string) => () => shell.openExternal(url) |
|
|
|
|
|
|
|
|
render() { |
|
|
render() { |
|
|
const { t } = this.props |
|
|
const { t, openModal } = this.props |
|
|
|
|
|
const version = __APP_VERSION__ |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<Section> |
|
|
<Section> |
|
|
<Header |
|
|
<Header |
|
@ -32,6 +44,16 @@ class SectionAbout extends PureComponent<Props> { |
|
|
desc="Lorem ipsum dolor sit amet" |
|
|
desc="Lorem ipsum dolor sit amet" |
|
|
/> |
|
|
/> |
|
|
<Body> |
|
|
<Body> |
|
|
|
|
|
<Row title="Version" desc={version}> |
|
|
|
|
|
<Button |
|
|
|
|
|
primary |
|
|
|
|
|
onClick={() => { |
|
|
|
|
|
openModal(MODAL_RELEASES_NOTES, version) |
|
|
|
|
|
}} |
|
|
|
|
|
> |
|
|
|
|
|
Show release notes |
|
|
|
|
|
</Button> |
|
|
|
|
|
</Row> |
|
|
<Row |
|
|
<Row |
|
|
onClick={this.handleOpenLink('https://support.ledgerwallet.com/hc/en-us')} |
|
|
onClick={this.handleOpenLink('https://support.ledgerwallet.com/hc/en-us')} |
|
|
title={t('app:settings.about.faq')} |
|
|
title={t('app:settings.about.faq')} |
|
@ -59,4 +81,7 @@ class SectionAbout extends PureComponent<Props> { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export default SectionAbout |
|
|
export default connect( |
|
|
|
|
|
null, |
|
|
|
|
|
mapDispatchToProps, |
|
|
|
|
|
)(SectionAbout) |
|
|