Use UrlIcon instead of Identicon on approve screen (#11048)

* Use UrlIcon instead of Identicon on approve screen

* Update ui/pages/confirm-approve/confirm-approve-content/confirm-approve-content.component.js

Co-authored-by: Thomas Huang <tmashuang@users.noreply.github.com>

Co-authored-by: Thomas Huang <tmashuang@users.noreply.github.com>
feature/default_network_editable
Dan J Miller 4 years ago committed by ryanml
parent 2c2c822ef7
commit ad399648fb
  1. 10
      ui/app/pages/confirm-approve/confirm-approve-content/confirm-approve-content.component.js
  2. 5
      ui/app/pages/confirm-approve/confirm-approve-content/index.scss

@ -1,7 +1,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Identicon from '../../../components/ui/identicon';
import UrlIcon from '../../../components/ui/url-icon';
import { addressSummary } from '../../../helpers/utils/util';
import { formatCurrency } from '../../../helpers/utils/confirm-tx.util';
import { ConfirmPageContainerWarning } from '../../../components/app/confirm-page-container/confirm-page-container-content';
@ -253,11 +253,11 @@ export default class ConfirmApproveContent extends Component {
</div>
)}
<div className="confirm-approve-content__identicon-wrapper">
<Identicon
<UrlIcon
className="confirm-approve-content__identicon"
diameter={48}
address={origin}
image={siteImage}
fallbackClassName="confirm-approve-content__identicon"
name={origin ? new URL(origin).hostname : ''}
url={siteImage}
/>
</div>
<div className="confirm-approve-content__title">

@ -15,6 +15,11 @@
padding-right: 24px;
}
&__identicon {
width: 48px;
height: 48px;
}
&__full-tx-content {
display: flex;
flex-flow: column;

Loading…
Cancel
Save