aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pending-tx.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/pending-tx.js')
-rw-r--r--ui/app/components/pending-tx.js29
1 files changed, 8 insertions, 21 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index cc76cc697..197e0436c 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -15,11 +15,6 @@ PendingTx.prototype.render = function () {
var state = this.props
var txData = state.txData
- var txParams = txData.txParams || {}
- var address = txParams.from || state.selectedAddress
- var identity = state.identities[address] || { address: address }
- var account = state.accounts[address] || { address: address }
-
return (
h('div', {
@@ -38,25 +33,17 @@ PendingTx.prototype.render = function () {
h(PendingTxDetails, state),
// send + cancel
- actionButtons(state),
+ h('.flex-row.flex-space-around', [
+ h('button', {
+ onClick: state.cancelTransaction,
+ }, 'Cancel'),
+ h('button', {
+ onClick: state.sendTransaction,
+ }, 'Send'),
+ ]),
])
)
}
-
-function actionButtons(state){
- return (
-
- h('.flex-row.flex-space-around', [
- h('button', {
- onClick: state.cancelTransaction,
- }, 'Cancel'),
- h('button', {
- onClick: state.sendTransaction,
- }, 'Send'),
- ])
-
- )
-} \ No newline at end of file