|
|
@ -1,23 +1,24 @@ |
|
|
|
import React, { Component } from 'react' |
|
|
|
import React, { Component } from 'react' |
|
|
|
import PropTypes from 'prop-types' |
|
|
|
import PropTypes from 'prop-types' |
|
|
|
import PageContainerHeader from '../../page-container/page-container-header.component' |
|
|
|
import PageContainerHeader from '../../page-container/page-container-header.component' |
|
|
|
|
|
|
|
import { DEFAULT_ROUTE } from '../../../routes' |
|
|
|
|
|
|
|
|
|
|
|
export default class SendHeader extends Component { |
|
|
|
export default class SendHeader extends Component { |
|
|
|
|
|
|
|
|
|
|
|
static propTypes = { |
|
|
|
static propTypes = { |
|
|
|
clearSend: PropTypes.func, |
|
|
|
clearSend: PropTypes.func, |
|
|
|
goHome: PropTypes.func, |
|
|
|
history: PropTypes.object, |
|
|
|
isToken: PropTypes.bool, |
|
|
|
isToken: PropTypes.bool, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
render () { |
|
|
|
const { isToken, clearSend, goHome } = this.props |
|
|
|
const { isToken, clearSend, history } = this.props |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<PageContainerHeader |
|
|
|
<PageContainerHeader |
|
|
|
onClose={() => { |
|
|
|
onClose={() => { |
|
|
|
clearSend() |
|
|
|
clearSend() |
|
|
|
goHome() |
|
|
|
history.push(DEFAULT_ROUTE) |
|
|
|
}} |
|
|
|
}} |
|
|
|
subtitle={this.context.t('onlySendToEtherAddress')} |
|
|
|
subtitle={this.context.t('onlySendToEtherAddress')} |
|
|
|
title={isToken ? this.context.t('sendTokens') : this.context.t('sendETH')} |
|
|
|
title={isToken ? this.context.t('sendTokens') : this.context.t('sendETH')} |
|
|
|