aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-06-25 08:27:42 +0800
committerkumavis <aaron@kumavis.me>2016-06-25 08:27:42 +0800
commit770528d5380b9e30742130d986d196c192b2ac09 (patch)
tree0195a4f3d058dc046f776035e3a42cb6ad097b90 /ui/app
parentd7d440b2c22eb29744dbd59d6a0d83c27e60c9bd (diff)
downloadtangerine-wallet-browser-770528d5380b9e30742130d986d196c192b2ac09.tar
tangerine-wallet-browser-770528d5380b9e30742130d986d196c192b2ac09.tar.gz
tangerine-wallet-browser-770528d5380b9e30742130d986d196c192b2ac09.tar.bz2
tangerine-wallet-browser-770528d5380b9e30742130d986d196c192b2ac09.tar.lz
tangerine-wallet-browser-770528d5380b9e30742130d986d196c192b2ac09.tar.xz
tangerine-wallet-browser-770528d5380b9e30742130d986d196c192b2ac09.tar.zst
tangerine-wallet-browser-770528d5380b9e30742130d986d196c192b2ac09.zip
clean - appease the linting machine
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/components/pending-msg.js7
-rw-r--r--ui/app/components/pending-tx.js29
2 files changed, 9 insertions, 27 deletions
diff --git a/ui/app/components/pending-msg.js b/ui/app/components/pending-msg.js
index a45b828b7..f4bde91dc 100644
--- a/ui/app/components/pending-msg.js
+++ b/ui/app/components/pending-msg.js
@@ -14,11 +14,6 @@ PendingMsg.prototype.render = function () {
var state = this.props
var msgData = state.txData
- var msgParams = msgData.msgParams || {}
- var address = msgParams.from || state.selectedAddress
- var identity = state.identities[address] || { address: address }
- var account = state.accounts[address] || { address: address }
-
return (
h('div', {
@@ -46,7 +41,7 @@ PendingMsg.prototype.render = function () {
}, 'Sign'),
]),
])
-
+
)
}
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