mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
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>
This commit is contained in:
parent
5cbc71c963
commit
1998af4d41
@ -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…
Reference in New Issue
Block a user