diff options
author | Alexander Tseung <alextsg@users.noreply.github.com> | 2018-03-17 04:09:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-17 04:09:49 +0800 |
commit | 6f749e5576cb981a469d0cf969b15901bcc05cfa (patch) | |
tree | c7204b86eadaa0c21efe50030797b1a5340442a6 /ui/app/components/sender-to-recipient.js | |
parent | ad9feee637822dbcf945f0017b88bcbc4c9ede44 (diff) | |
download | tangerine-wallet-browser-6f749e5576cb981a469d0cf969b15901bcc05cfa.tar tangerine-wallet-browser-6f749e5576cb981a469d0cf969b15901bcc05cfa.tar.gz tangerine-wallet-browser-6f749e5576cb981a469d0cf969b15901bcc05cfa.tar.bz2 tangerine-wallet-browser-6f749e5576cb981a469d0cf969b15901bcc05cfa.tar.lz tangerine-wallet-browser-6f749e5576cb981a469d0cf969b15901bcc05cfa.tar.xz tangerine-wallet-browser-6f749e5576cb981a469d0cf969b15901bcc05cfa.tar.zst tangerine-wallet-browser-6f749e5576cb981a469d0cf969b15901bcc05cfa.zip |
Update Confirm Contract screen (#3597)
Diffstat (limited to 'ui/app/components/sender-to-recipient.js')
-rw-r--r-- | ui/app/components/sender-to-recipient.js | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/ui/app/components/sender-to-recipient.js b/ui/app/components/sender-to-recipient.js new file mode 100644 index 000000000..25b9c7d6b --- /dev/null +++ b/ui/app/components/sender-to-recipient.js @@ -0,0 +1,45 @@ +const { Component } = require('react') +const h = require('react-hyperscript') +const PropTypes = require('prop-types') +const t = require('../../i18n') +const Identicon = require('./identicon') + +class SenderToRecipient extends Component { + render () { + const { senderName, senderAddress } = this.props + + return ( + h('.sender-to-recipient__container', [ + h('.sender-to-recipient__sender', [ + h('.sender-to-recipient__sender-icon', [ + h(Identicon, { + address: senderAddress, + diameter: 20, + }), + ]), + h('.sender-to-recipient__name.sender-to-recipient__sender-name', senderName), + ]), + h('.sender-to-recipient__arrow-container', [ + h('.sender-to-recipient__arrow-circle', [ + h('img', { + height: 15, + width: 15, + src: '/images/arrow-right.svg', + }), + ]), + ]), + h('.sender-to-recipient__recipient', [ + h('i.fa.fa-file-text-o'), + h('.sender-to-recipient__name.sender-to-recipient__recipient-name', t('newContract')), + ]), + ]) + ) + } +} + +SenderToRecipient.propTypes = { + senderName: PropTypes.string, + senderAddress: PropTypes.string, +} + +module.exports = SenderToRecipient |