fix watched asset image rendering on confirm transaction header

feature/default_network_editable
Esteban MIno 6 years ago
parent 07cb6adc31
commit 208312b239
  1. 2
      ui/app/components/confirm-page-container/confirm-page-container.component.js
  2. 4
      ui/app/components/sender-to-recipient/sender-to-recipient.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>
{

@ -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>
)

Loading…
Cancel
Save