Enables the old shapeshift UI within new ui.

feature/default_network_editable
Dan 7 years ago committed by Chi Kei Chan
parent 67ee5b21e6
commit 7c4d8c4562
  1. 6
      ui/app/app.js
  2. 2
      ui/app/components/shift-list-item.js
  3. 4
      ui/app/components/tx-list.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,
}),
]),
])

@ -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',

@ -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 = {

Loading…
Cancel
Save