mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +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 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…
Reference in New Issue
Block a user