mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
PendingTxDetails - partially remove imagify support
This commit is contained in:
parent
c477411ce0
commit
f7794d9949
@ -1,7 +1,6 @@
|
|||||||
const Component = require('react').Component
|
const Component = require('react').Component
|
||||||
const h = require('react-hyperscript')
|
const h = require('react-hyperscript')
|
||||||
const inherits = require('util').inherits
|
const inherits = require('util').inherits
|
||||||
const carratInline = require('fs').readFileSync('./images/forward-carrat.svg', 'utf8')
|
|
||||||
|
|
||||||
const MiniAccountPanel = require('./mini-account-panel')
|
const MiniAccountPanel = require('./mini-account-panel')
|
||||||
const EthBalance = require('./eth-balance')
|
const EthBalance = require('./eth-balance')
|
||||||
@ -78,7 +77,7 @@ PTXP.render = function () {
|
|||||||
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
forwardCarrat(imageify),
|
forwardCarrat(),
|
||||||
|
|
||||||
this.miniAccountPanelForRecipient(),
|
this.miniAccountPanelForRecipient(),
|
||||||
]),
|
]),
|
||||||
@ -223,30 +222,16 @@ PTXP.warnIfNeeded = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function forwardCarrat (imageify) {
|
function forwardCarrat () {
|
||||||
if (imageify) {
|
return (
|
||||||
return (
|
|
||||||
|
|
||||||
h('img', {
|
h('img', {
|
||||||
src: 'images/forward-carrat.svg',
|
src: 'images/forward-carrat.svg',
|
||||||
style: {
|
style: {
|
||||||
padding: '5px 6px 0px 10px',
|
padding: '5px 6px 0px 10px',
|
||||||
height: '37px',
|
height: '37px',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
)
|
)
|
||||||
} else {
|
|
||||||
return (
|
|
||||||
|
|
||||||
h('div', {
|
|
||||||
dangerouslySetInnerHTML: { __html: carratInline },
|
|
||||||
style: {
|
|
||||||
padding: '0px 6px 0px 10px',
|
|
||||||
height: '45px',
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user