aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-09-14 02:29:46 +0800
committerGitHub <noreply@github.com>2016-09-14 02:29:46 +0800
commitb13eaaa0cd201704a63e30f3601552c136c9278c (patch)
treea2b85fba2f42921ce2c9afb158f6bcad787f4ea0 /ui/app/components
parentb4344f2a02ac7b130fc69bbb772f68b4d042b49c (diff)
parent81d25d560f4920ee7a357881931e674bea97176c (diff)
downloadtangerine-wallet-browser-b13eaaa0cd201704a63e30f3601552c136c9278c.tar
tangerine-wallet-browser-b13eaaa0cd201704a63e30f3601552c136c9278c.tar.gz
tangerine-wallet-browser-b13eaaa0cd201704a63e30f3601552c136c9278c.tar.bz2
tangerine-wallet-browser-b13eaaa0cd201704a63e30f3601552c136c9278c.tar.lz
tangerine-wallet-browser-b13eaaa0cd201704a63e30f3601552c136c9278c.tar.xz
tangerine-wallet-browser-b13eaaa0cd201704a63e30f3601552c136c9278c.tar.zst
tangerine-wallet-browser-b13eaaa0cd201704a63e30f3601552c136c9278c.zip
Merge pull request #651 from MetaMask/library
MetaMask "Mascara" Library - initial PR
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/pending-tx-details.js37
1 files changed, 11 insertions, 26 deletions
diff --git a/ui/app/components/pending-tx-details.js b/ui/app/components/pending-tx-details.js
index c2e39a1ca..148b5c6df 100644
--- a/ui/app/components/pending-tx-details.js
+++ b/ui/app/components/pending-tx-details.js
@@ -1,7 +1,6 @@
const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
-const carratInline = require('fs').readFileSync('./images/forward-carrat.svg', 'utf8')
const MiniAccountPanel = require('./mini-account-panel')
const EthBalance = require('./eth-balance')
@@ -78,7 +77,7 @@ PTXP.render = function () {
]),
- forwardCarrat(imageify),
+ forwardCarrat(),
this.miniAccountPanelForRecipient(),
]),
@@ -223,30 +222,16 @@ PTXP.warnIfNeeded = function () {
}
-function forwardCarrat (imageify) {
- if (imageify) {
- return (
-
- h('img', {
- src: 'images/forward-carrat.svg',
- style: {
- padding: '5px 6px 0px 10px',
- height: '37px',
- },
- })
-
- )
- } else {
- return (
+function forwardCarrat () {
+ return (
- h('div', {
- dangerouslySetInnerHTML: { __html: carratInline },
- style: {
- padding: '0px 6px 0px 10px',
- height: '45px',
- },
- })
+ h('img', {
+ src: 'images/forward-carrat.svg',
+ style: {
+ padding: '5px 6px 0px 10px',
+ height: '37px',
+ },
+ })
- )
- }
+ )
}