aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pending-tx.js
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-07-08 06:11:21 +0800
committerGitHub <noreply@github.com>2016-07-08 06:11:21 +0800
commit2bd31c3e5024ca88b18190c145008ba87736f129 (patch)
tree27b3f32b69b302de0ac0750ad5b8a34f5f868da5 /ui/app/components/pending-tx.js
parent3fb36b2dd388d7344fd7b3b7e32dcbafeabc9b48 (diff)
parentac808e681fe6a8666a4842cf7fde23345f63e96a (diff)
downloadtangerine-wallet-browser-2bd31c3e5024ca88b18190c145008ba87736f129.tar
tangerine-wallet-browser-2bd31c3e5024ca88b18190c145008ba87736f129.tar.gz
tangerine-wallet-browser-2bd31c3e5024ca88b18190c145008ba87736f129.tar.bz2
tangerine-wallet-browser-2bd31c3e5024ca88b18190c145008ba87736f129.tar.lz
tangerine-wallet-browser-2bd31c3e5024ca88b18190c145008ba87736f129.tar.xz
tangerine-wallet-browser-2bd31c3e5024ca88b18190c145008ba87736f129.tar.zst
tangerine-wallet-browser-2bd31c3e5024ca88b18190c145008ba87736f129.zip
Merge pull request #406 from MetaMask/ConfirmationStyle
Update transaction confirmation style
Diffstat (limited to 'ui/app/components/pending-tx.js')
-rw-r--r--ui/app/components/pending-tx.js38
1 files changed, 22 insertions, 16 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 5d1fd4c16..1feedbbbc 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -21,29 +21,35 @@ PendingTx.prototype.render = function () {
key: txData.id,
}, [
- // header
- h('h3', {
- style: {
- fontWeight: 'bold',
- textAlign: 'center',
- },
- }, 'Submit Transaction'),
-
// tx info
h(PendingTxDetails, state),
+ h('style', `
+ .conf-buttons button {
+ margin-left: 10px;
+ text-transform: uppercase;
+ }
+ `),
+
// send + cancel
- h('.flex-row.flex-space-around', [
- h('button', {
+ h('.flex-row.flex-space-around.conf-buttons', {
+ style: {
+ display: 'flex',
+ justifyContent: 'flex-end',
+ margin: '14px 25px',
+ },
+ }, [
+ h('button.confirm', {
+ onClick: state.sendTransaction,
+ style: { background: 'rgb(251,117,1)' },
+ }, 'Accept'),
+
+ h('button.cancel', {
onClick: state.cancelTransaction,
+ style: { background: 'rgb(254,35,17)' },
}, 'Reject'),
- h('button', {
- onClick: state.sendTransaction,
- }, 'Approve'),
]),
-
])
-
)
-
}
+