aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-09-29 22:50:09 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-02 09:58:57 +0800
commit7c4d8c45624ef840b8806589b47997e7c7c396f3 (patch)
tree976cea42949d30e528c4b78d74135fd7d54f22a9 /ui
parent67ee5b21e6f64ac22e65f2712ae13dd8c09ed113 (diff)
downloadtangerine-wallet-browser-7c4d8c45624ef840b8806589b47997e7c7c396f3.tar
tangerine-wallet-browser-7c4d8c45624ef840b8806589b47997e7c7c396f3.tar.gz
tangerine-wallet-browser-7c4d8c45624ef840b8806589b47997e7c7c396f3.tar.bz2
tangerine-wallet-browser-7c4d8c45624ef840b8806589b47997e7c7c396f3.tar.lz
tangerine-wallet-browser-7c4d8c45624ef840b8806589b47997e7c7c396f3.tar.xz
tangerine-wallet-browser-7c4d8c45624ef840b8806589b47997e7c7c396f3.tar.zst
tangerine-wallet-browser-7c4d8c45624ef840b8806589b47997e7c7c396f3.zip
Enables the old shapeshift UI within new ui.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/app.js6
-rw-r--r--ui/app/components/shift-list-item.js2
-rw-r--r--ui/app/components/tx-list.js4
3 files changed, 9 insertions, 3 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 7468551eb..cf9850f9f 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -72,6 +72,7 @@ function mapStateToProps (state) {
lastUnreadNotice: state.metamask.lastUnreadNotice,
lostAccounts: state.metamask.lostAccounts,
frequentRpcList: state.metamask.frequentRpcList || [],
+ Qr: state.appState.Qr,
// state needed to get account dropdown temporarily rendering from app bar
identities,
@@ -395,7 +396,10 @@ App.prototype.renderPrimary = function () {
width: '285px',
},
}, [
- h(QrView, {key: 'qr'}),
+ h(QrView, {
+ key: 'qr',
+ Qr: props.Qr,
+ }),
]),
])
diff --git a/ui/app/components/shift-list-item.js b/ui/app/components/shift-list-item.js
index 079f05e31..392b67630 100644
--- a/ui/app/components/shift-list-item.js
+++ b/ui/app/components/shift-list-item.js
@@ -29,7 +29,7 @@ function ShiftListItem () {
ShiftListItem.prototype.render = function () {
return (
- h('.transaction-list-item.flex-row', {
+ h('div.tx-list-item.tx-list-clickable', {
style: {
paddingTop: '20px',
paddingBottom: '20px',
diff --git a/ui/app/components/tx-list.js b/ui/app/components/tx-list.js
index ef5cfa245..82541704e 100644
--- a/ui/app/components/tx-list.js
+++ b/ui/app/components/tx-list.js
@@ -5,6 +5,7 @@ const inherits = require('util').inherits
const prefixForNetwork = require('../../lib/etherscan-prefix-for-network')
const selectors = require('../selectors')
const TxListItem = require('./tx-list-item')
+const ShiftListItem = require('./shift-list-item')
const { formatBalance, formatDate } = require('../util')
const { showConfTxPage } = require('../actions')
@@ -56,8 +57,9 @@ TxList.prototype.renderTransaction = function () {
TxList.prototype.renderTransactionListItem = function (transaction, conversionRate) {
// console.log({transaction})
// refer to transaction-list.js:line 58
+ const shapeshiftProps = {};
if (transaction.key === 'shapeshift') {
- return null
+ return h(ShiftListItem, transaction)
}
const props = {