From b0759ddc1881179edaf27a6cd57e5fb27bdd2c31 Mon Sep 17 00:00:00 2001 From: sdtsui Date: Mon, 21 Aug 2017 12:53:15 -0700 Subject: [PATCH] Hook up send screen action to Send Button in TxView --- ui/app/components/modals/new-account-modal.js | 2 +- ui/app/components/tx-view.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/app/components/modals/new-account-modal.js b/ui/app/components/modals/new-account-modal.js index 15341a2e9..90a3b7c99 100644 --- a/ui/app/components/modals/new-account-modal.js +++ b/ui/app/components/modals/new-account-modal.js @@ -18,7 +18,7 @@ function mapDispatchToProps (dispatch) { }, hideModal: () => { dispatch(actions.hideModal()) - } + }, } } diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js index 265893104..dbbf07710 100644 --- a/ui/app/components/tx-view.js +++ b/ui/app/components/tx-view.js @@ -36,6 +36,7 @@ function mapDispatchToProps (dispatch) { showSidebar: () => { dispatch(actions.showSidebar()) }, hideSidebar: () => { dispatch(actions.hideSidebar()) }, showModal: (payload) => { dispatch(actions.showModal(payload)) }, + showSendPage: () => { dispatch(actions.showSendPage()) }, } } @@ -115,6 +116,9 @@ TxView.prototype.render = function () { textAlign: 'center', marginLeft: '1.4em', }, + onClick: () => { + this.props.showSendPage() + }, }, 'SEND'), ]),