aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pending-personal-msg.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-02-28 04:59:19 +0800
committerDan Finlay <dan@danfinlay.com>2017-02-28 04:59:19 +0800
commit462c7ae21316cbb3a242f53a0b726194a0faa64e (patch)
treef8c72294bed4d53221162e24fde92069ff17382b /ui/app/components/pending-personal-msg.js
parentdfc89d6c6dd622e7dff79544c0885594000ffd37 (diff)
parentab01fef1c0ffddf09a20f90a910e5e068cf8c71e (diff)
downloadtangerine-wallet-browser-462c7ae21316cbb3a242f53a0b726194a0faa64e.tar
tangerine-wallet-browser-462c7ae21316cbb3a242f53a0b726194a0faa64e.tar.gz
tangerine-wallet-browser-462c7ae21316cbb3a242f53a0b726194a0faa64e.tar.bz2
tangerine-wallet-browser-462c7ae21316cbb3a242f53a0b726194a0faa64e.tar.lz
tangerine-wallet-browser-462c7ae21316cbb3a242f53a0b726194a0faa64e.tar.xz
tangerine-wallet-browser-462c7ae21316cbb3a242f53a0b726194a0faa64e.tar.zst
tangerine-wallet-browser-462c7ae21316cbb3a242f53a0b726194a0faa64e.zip
Merge branch 'master' into i765-gaslimits
Diffstat (limited to 'ui/app/components/pending-personal-msg.js')
-rw-r--r--ui/app/components/pending-personal-msg.js47
1 files changed, 47 insertions, 0 deletions
diff --git a/ui/app/components/pending-personal-msg.js b/ui/app/components/pending-personal-msg.js
new file mode 100644
index 000000000..4542adb28
--- /dev/null
+++ b/ui/app/components/pending-personal-msg.js
@@ -0,0 +1,47 @@
+const Component = require('react').Component
+const h = require('react-hyperscript')
+const inherits = require('util').inherits
+const PendingTxDetails = require('./pending-personal-msg-details')
+
+module.exports = PendingMsg
+
+inherits(PendingMsg, Component)
+function PendingMsg () {
+ Component.call(this)
+}
+
+PendingMsg.prototype.render = function () {
+ var state = this.props
+ var msgData = state.txData
+
+ return (
+
+ h('div', {
+ key: msgData.id,
+ }, [
+
+ // header
+ h('h3', {
+ style: {
+ fontWeight: 'bold',
+ textAlign: 'center',
+ },
+ }, 'Sign Message'),
+
+ // message details
+ h(PendingTxDetails, state),
+
+ // sign + cancel
+ h('.flex-row.flex-space-around', [
+ h('button', {
+ onClick: state.cancelPersonalMessage,
+ }, 'Cancel'),
+ h('button', {
+ onClick: state.signPersonalMessage,
+ }, 'Sign'),
+ ]),
+ ])
+
+ )
+}
+