aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pending-tx-details.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-07-08 03:27:34 +0800
committerDan Finlay <dan@danfinlay.com>2016-07-08 03:27:34 +0800
commit2a204624f54da65613e57c24d047af6b17014ec7 (patch)
treef8da336c3adb4b1727d30c3fdbb94cace3061d3a /ui/app/components/pending-tx-details.js
parent97b60caac0dfabaa3652fde75cfafa9551bf47ce (diff)
downloadtangerine-wallet-browser-2a204624f54da65613e57c24d047af6b17014ec7.tar.gz
tangerine-wallet-browser-2a204624f54da65613e57c24d047af6b17014ec7.tar.zst
tangerine-wallet-browser-2a204624f54da65613e57c24d047af6b17014ec7.zip
Implement tx confirmation style refinements
Diffstat (limited to 'ui/app/components/pending-tx-details.js')
-rw-r--r--ui/app/components/pending-tx-details.js46
1 files changed, 36 insertions, 10 deletions
diff --git a/ui/app/components/pending-tx-details.js b/ui/app/components/pending-tx-details.js
index 9c3272faa..e0b629e89 100644
--- a/ui/app/components/pending-tx-details.js
+++ b/ui/app/components/pending-tx-details.js
@@ -3,6 +3,7 @@ const h = require('react-hyperscript')
const inherits = require('util').inherits
const MiniAccountPanel = require('./mini-account-panel')
+const EtherBalance = require('./eth-balance')
const addressSummary = require('../util').addressSummary
const formatBalance = require('../util').formatBalance
const nameForAddress = require('../../lib/contract-namer')
@@ -52,7 +53,7 @@ PTXP.render = function () {
}, [
h('span.font-small', {
style: {
- fontFamily: 'Montserrat Light, Montserrat, sans-serif',
+ fontFamily: 'Montserrat Bold, Montserrat, sans-serif',
},
}, identity.name),
h('span.font-small', {
@@ -65,7 +66,10 @@ PTXP.render = function () {
style: {
fontFamily: 'Montserrat Light, Montserrat, sans-serif',
},
- }, formatBalance(balance)),
+ }, h(EtherBalance, {
+ value: balance,
+ inline: true,
+ })),
]),
@@ -73,7 +77,7 @@ PTXP.render = function () {
src: 'images/forward-carrat.svg',
style: {
padding: '5px 6px 0px 10px',
- height: '48px',
+ height: '37px',
},
}),
@@ -82,7 +86,8 @@ PTXP.render = function () {
h('style', `
.table-box {
- margin: 7px 6px 0px 6px;
+ margin: 7px 0px 0px 0px;
+ width: 100%;
}
.table-box .row {
margin: 0px;
@@ -91,7 +96,10 @@ PTXP.render = function () {
justify-content: space-between;
font-family: Montserrat Light, sans-serif;
font-size: 13px;
- padding: 5px 15px;
+ padding: 5px 25px;
+ }
+ .table-box .row .value {
+ font-family: Montserrat Regular;
}
`),
@@ -110,11 +118,24 @@ PTXP.render = function () {
h('.cell.row', {
style: {
fontFamily: 'Montserrat Regular',
- background: 'rgb(216,216,216)',
+ background: 'white',
+ padding: '10px 25px',
},
}, [
h('.cell.label', 'Max Total'),
- h('.cell.value', formatBalance(maxCost)),
+ h('.cell.value', {
+ style: {
+ display: 'flex',
+ alignItems: 'center',
+ },
+ }, [
+ h(EtherBalance, {
+ value: maxCost,
+ inline: true,
+ labelColor: 'black',
+ fontSize: '16px',
+ }),
+ ]),
]),
h('.cell.row', {
@@ -124,7 +145,12 @@ PTXP.render = function () {
},
}, [
h('.cell.label'),
- h('.cell.value', `Data included: ${dataLength} bytes`),
+ h('.cell.value', {
+ style: {
+ fontFamily: 'Montserrat Light',
+ fontSize: '11px',
+ },
+ }, `Data included: ${dataLength} bytes`),
]),
]), // End of Table
@@ -149,7 +175,7 @@ PTXP.miniAccountPanelForRecipient = function () {
}, [
h('span.font-small', {
style: {
- fontFamily: 'Montserrat Light, Montserrat, sans-serif',
+ fontFamily: 'Montserrat Bold, Montserrat, sans-serif',
},
}, nameForAddress(txParams.to)),
h('span.font-small', {
@@ -167,7 +193,7 @@ PTXP.miniAccountPanelForRecipient = function () {
h('span.font-small', {
style: {
- fontFamily: 'Montserrat Light, Montserrat, sans-serif',
+ fontFamily: 'Montserrat Bold, Montserrat, sans-serif',
},
}, 'New Contract'),