diff options
author | Sergey Ukustov <sergey@ukstv.me> | 2017-09-30 00:24:08 +0800 |
---|---|---|
committer | Sergey Ukustov <sergey@ukstv.me> | 2017-09-30 00:40:46 +0800 |
commit | c2b8dada91c90788dcd81a0318c52a66b4b769d1 (patch) | |
tree | 599c21d3ff09e5ac1c01062940337d6eb2c5d4fb /ui/app/components/pending-typed-msg.js | |
parent | cdf41c28573822c7c4d50efe7dfa34a062825d7f (diff) | |
download | tangerine-wallet-browser-c2b8dada91c90788dcd81a0318c52a66b4b769d1.tar.gz tangerine-wallet-browser-c2b8dada91c90788dcd81a0318c52a66b4b769d1.tar.zst tangerine-wallet-browser-c2b8dada91c90788dcd81a0318c52a66b4b769d1.zip |
Add eth_signTypedData handler
Diffstat (limited to 'ui/app/components/pending-typed-msg.js')
-rw-r--r-- | ui/app/components/pending-typed-msg.js | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/ui/app/components/pending-typed-msg.js b/ui/app/components/pending-typed-msg.js new file mode 100644 index 000000000..f8926d0a3 --- /dev/null +++ b/ui/app/components/pending-typed-msg.js @@ -0,0 +1,46 @@ +const Component = require('react').Component +const h = require('react-hyperscript') +const inherits = require('util').inherits +const PendingTxDetails = require('./pending-typed-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.cancelTypedMessage, + }, 'Cancel'), + h('button', { + onClick: state.signTypedMessage, + }, 'Sign'), + ]), + ]) + + ) +} |