mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix approve all warning modal (#18613)
* Fix approve all warning modal * fix * fix * fix
This commit is contained in:
parent
9d3cdd1b79
commit
c6aa4f38c5
@ -105,7 +105,7 @@ const SetApproveForAllWarning = ({
|
|||||||
key="non_custodial_bold"
|
key="non_custodial_bold"
|
||||||
className="set-approval-for-all-warning__content__bold"
|
className="set-approval-for-all-warning__content__bold"
|
||||||
>
|
>
|
||||||
{t('nftWarningContentBold', [collectionName])}
|
{t('nftWarningContentBold', [collectionName || ''])}
|
||||||
</strong>,
|
</strong>,
|
||||||
<strong key="non_custodial_grey">
|
<strong key="non_custodial_grey">
|
||||||
{t('nftWarningContentGrey')}
|
{t('nftWarningContentGrey')}
|
||||||
|
@ -144,6 +144,7 @@ export default function ConfirmApprove({
|
|||||||
|
|
||||||
const { iconUrl: siteImage = '' } = subjectMetadata[origin] || {};
|
const { iconUrl: siteImage = '' } = subjectMetadata[origin] || {};
|
||||||
|
|
||||||
|
// Code below may need a additional look as ERC1155 tokens do not have a name
|
||||||
let tokensText;
|
let tokensText;
|
||||||
if (
|
if (
|
||||||
assetStandard === TokenStandard.ERC721 ||
|
assetStandard === TokenStandard.ERC721 ||
|
||||||
|
@ -813,6 +813,7 @@ export default class ConfirmTransactionBase extends Component {
|
|||||||
image,
|
image,
|
||||||
isApprovalOrRejection,
|
isApprovalOrRejection,
|
||||||
assetStandard,
|
assetStandard,
|
||||||
|
title,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const {
|
const {
|
||||||
submitting,
|
submitting,
|
||||||
@ -873,6 +874,7 @@ export default class ConfirmTransactionBase extends Component {
|
|||||||
showEdit={!isContractInteractionFromDapp && Boolean(onEdit)}
|
showEdit={!isContractInteractionFromDapp && Boolean(onEdit)}
|
||||||
action={functionType}
|
action={functionType}
|
||||||
image={image}
|
image={image}
|
||||||
|
title={title}
|
||||||
titleComponent={this.renderTitleComponent()}
|
titleComponent={this.renderTitleComponent()}
|
||||||
subtitleComponent={this.renderSubtitleComponent()}
|
subtitleComponent={this.renderSubtitleComponent()}
|
||||||
detailsComponent={this.renderDetails()}
|
detailsComponent={this.renderDetails()}
|
||||||
|
Loading…
Reference in New Issue
Block a user