aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/shapeshift-deposit-tx-modal.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-09-29 23:40:57 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-02 09:58:57 +0800
commitff64fe98dde7746775396cbf94d63a1a0e91d069 (patch)
tree77ffc60ab81fa133a3553b1476ca363de3366641 /ui/app/components/modals/shapeshift-deposit-tx-modal.js
parent7c4d8c45624ef840b8806589b47997e7c7c396f3 (diff)
downloadtangerine-wallet-browser-ff64fe98dde7746775396cbf94d63a1a0e91d069.tar.gz
tangerine-wallet-browser-ff64fe98dde7746775396cbf94d63a1a0e91d069.tar.zst
tangerine-wallet-browser-ff64fe98dde7746775396cbf94d63a1a0e91d069.zip
Shapeshift deposit tx modal.
Diffstat (limited to 'ui/app/components/modals/shapeshift-deposit-tx-modal.js')
-rw-r--r--ui/app/components/modals/shapeshift-deposit-tx-modal.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/ui/app/components/modals/shapeshift-deposit-tx-modal.js b/ui/app/components/modals/shapeshift-deposit-tx-modal.js
new file mode 100644
index 000000000..1fd1ade00
--- /dev/null
+++ b/ui/app/components/modals/shapeshift-deposit-tx-modal.js
@@ -0,0 +1,40 @@
+const Component = require('react').Component
+const h = require('react-hyperscript')
+const inherits = require('util').inherits
+const connect = require('react-redux').connect
+const actions = require('../../actions')
+const QrView = require('../qr-code')
+const AccountModalContainer = require('./account-modal-container')
+
+function mapStateToProps (state) {
+ return {
+ Qr: state.appState.modal.modalState.Qr,
+ }
+}
+
+function mapDispatchToProps (dispatch) {
+ return {
+ hideModal: () => {
+ dispatch(actions.hideModal())
+ },
+ }
+}
+
+inherits(ShapeshiftDepositTxModal, Component)
+function ShapeshiftDepositTxModal () {
+ Component.call(this)
+
+}
+
+module.exports = connect(mapStateToProps, mapDispatchToProps)(ShapeshiftDepositTxModal)
+
+ShapeshiftDepositTxModal.prototype.render = function () {
+ const { Qr } = this.props
+
+ return h(AccountModalContainer, {
+ }, [
+ h('div', {}, [
+ h(QrView, {key: 'qr', Qr}),
+ ])
+ ])
+}