diff options
author | Dan <danjm.com@gmail.com> | 2018-05-25 03:57:33 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-25 03:57:33 +0800 |
commit | 5bb399e55a819d52f2742e3491d50547be435a97 (patch) | |
tree | df4e7f579f3a28602b84f79c443ca4d97ff03a53 /ui/app/components/send_/send-header/send-header.component.js | |
parent | 1405237479621d7258468e6c7694415b0afbb045 (diff) | |
download | tangerine-wallet-browser-5bb399e55a819d52f2742e3491d50547be435a97.tar.gz tangerine-wallet-browser-5bb399e55a819d52f2742e3491d50547be435a97.tar.zst tangerine-wallet-browser-5bb399e55a819d52f2742e3491d50547be435a97.zip |
Display correct titles and subtitles on send token and editing send transaction screens.
Diffstat (limited to 'ui/app/components/send_/send-header/send-header.component.js')
-rw-r--r-- | ui/app/components/send_/send-header/send-header.component.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/app/components/send_/send-header/send-header.component.js b/ui/app/components/send_/send-header/send-header.component.js index 0d75dbdae..5f6617fce 100644 --- a/ui/app/components/send_/send-header/send-header.component.js +++ b/ui/app/components/send_/send-header/send-header.component.js @@ -8,7 +8,8 @@ export default class SendHeader extends Component { static propTypes = { clearSend: PropTypes.func, history: PropTypes.object, - isToken: PropTypes.bool, + titleKey: PropTypes.string, + subtitleParams: PropTypes.array, }; onClose () { @@ -20,8 +21,8 @@ export default class SendHeader extends Component { return ( <PageContainerHeader onClose={() => this.onClose()} - subtitle={this.context.t('onlySendToEtherAddress')} - title={this.props.isToken ? this.context.t('sendTokens') : this.context.t('sendETH')} + subtitle={this.context.t(...this.props.subtitleParams)} + title={this.context.t(this.props.titleKey)} /> ) } |