aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-08-30 23:59:44 +0800
committerEsteban MIno <efmino@uc.cl>2018-08-30 23:59:44 +0800
commit208312b239355194de13989a3ede57e8d7393949 (patch)
treea794e61194995d188dd2738de842c2733307c829 /ui
parent07cb6adc314e645cc0429c696afab9738673a729 (diff)
downloadtangerine-wallet-browser-208312b239355194de13989a3ede57e8d7393949.tar
tangerine-wallet-browser-208312b239355194de13989a3ede57e8d7393949.tar.gz
tangerine-wallet-browser-208312b239355194de13989a3ede57e8d7393949.tar.bz2
tangerine-wallet-browser-208312b239355194de13989a3ede57e8d7393949.tar.lz
tangerine-wallet-browser-208312b239355194de13989a3ede57e8d7393949.tar.xz
tangerine-wallet-browser-208312b239355194de13989a3ede57e8d7393949.tar.zst
tangerine-wallet-browser-208312b239355194de13989a3ede57e8d7393949.zip
fix watched asset image rendering on confirm transaction header
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/confirm-page-container/confirm-page-container.component.js2
-rw-r--r--ui/app/components/sender-to-recipient/sender-to-recipient.component.js4
2 files changed, 5 insertions, 1 deletions
diff --git a/ui/app/components/confirm-page-container/confirm-page-container.component.js b/ui/app/components/confirm-page-container/confirm-page-container.component.js
index 85b168060..b1582051e 100644
--- a/ui/app/components/confirm-page-container/confirm-page-container.component.js
+++ b/ui/app/components/confirm-page-container/confirm-page-container.component.js
@@ -74,6 +74,7 @@ export default class ConfirmPageContainer extends Component {
assetImage,
warning,
} = this.props
+ const renderAssetImage = contentComponent || (!contentComponent && !identiconAddress)
return (
<div className="page-container">
@@ -86,6 +87,7 @@ export default class ConfirmPageContainer extends Component {
senderAddress={fromAddress}
recipientName={toName}
recipientAddress={toAddress}
+ assetImage={renderAssetImage ? assetImage : undefined}
/>
</ConfirmPageContainerHeader>
{
diff --git a/ui/app/components/sender-to-recipient/sender-to-recipient.component.js b/ui/app/components/sender-to-recipient/sender-to-recipient.component.js
index 5af4045f5..445a11d8a 100644
--- a/ui/app/components/sender-to-recipient/sender-to-recipient.component.js
+++ b/ui/app/components/sender-to-recipient/sender-to-recipient.component.js
@@ -20,6 +20,7 @@ export default class SenderToRecipient extends PureComponent {
t: PropTypes.func,
variant: PropTypes.oneOf([DEFAULT_VARIANT, CARDS_VARIANT]),
addressOnly: PropTypes.bool,
+ assetImage: PropTypes.string,
}
static defaultProps = {
@@ -66,13 +67,14 @@ export default class SenderToRecipient extends PureComponent {
}
renderRecipientIdenticon () {
- const { recipientAddress } = this.props
+ const { recipientAddress, assetImage } = this.props
return !this.props.addressOnly && (
<div className="sender-to-recipient__sender-icon">
<Identicon
address={recipientAddress}
diameter={24}
+ image={assetImage}
/>
</div>
)