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

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

Loading…
Cancel
Save