aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-header/send-header.component.js
diff options
context:
space:
mode:
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.js14
1 files changed, 7 insertions, 7 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 dc4190b93..0d75dbdae 100644
--- a/ui/app/components/send_/send-header/send-header.component.js
+++ b/ui/app/components/send_/send-header/send-header.component.js
@@ -11,17 +11,17 @@ export default class SendHeader extends Component {
isToken: PropTypes.bool,
};
- render () {
- const { isToken, clearSend, history } = this.props
+ onClose () {
+ this.props.clearSend()
+ this.props.history.push(DEFAULT_ROUTE)
+ }
+ render () {
return (
<PageContainerHeader
- onClose={() => {
- clearSend()
- history.push(DEFAULT_ROUTE)
- }}
+ onClose={() => this.onClose()}
subtitle={this.context.t('onlySendToEtherAddress')}
- title={isToken ? this.context.t('sendTokens') : this.context.t('sendETH')}
+ title={this.props.isToken ? this.context.t('sendTokens') : this.context.t('sendETH')}
/>
)
}