diff --git a/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js b/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js index a1656c5c1..4630cc5f9 100644 --- a/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js +++ b/ui/components/app/confirm-page-container/confirm-page-container-content/confirm-page-container-content.component.js @@ -2,15 +2,17 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { Tabs, Tab } from '../../../ui/tabs'; -///: BEGIN:ONLY_INCLUDE_IN(build-main,build-beta,build-flask) -import Button from '../../../ui/button'; -///: END:ONLY_INCLUDE_IN -import ActionableMessage from '../../../ui/actionable-message/actionable-message'; +import { + ///: BEGIN:ONLY_INCLUDE_IN(build-main,build-beta,build-flask) + Button, + BUTTON_SIZES, + BUTTON_VARIANT, + ///: END:ONLY_INCLUDE_IN + BannerAlert, +} from '../../../component-library'; import { PageContainerFooter } from '../../../ui/page-container'; -import ErrorMessage from '../../../ui/error-message'; import { INSUFFICIENT_FUNDS_ERROR_KEY } from '../../../../helpers/constants/error-keys'; -import Typography from '../../../ui/typography'; -import { TypographyVariant } from '../../../../helpers/constants/design-system'; +import { Severity } from '../../../../helpers/constants/design-system'; import { isSuspiciousResponse } from '../../../../../shared/modules/security-provider.utils'; ///: BEGIN:ONLY_INCLUDE_IN(blockaid) @@ -256,46 +258,42 @@ export default class ConfirmPageContainerContent extends Component { {!supportsEIP1559 && !showInsuffienctFundsError && (errorKey || errorMessage) && ( -
- -
+ )} {showInsuffienctFundsError && ( -
- - {t('insufficientCurrencyBuyOrDeposit', [ - nativeCurrency, - networkName, - ///: BEGIN:ONLY_INCLUDE_IN(build-main,build-beta,build-flask) - , - ///: END:ONLY_INCLUDE_IN - ])} - - ) : ( - - {t('insufficientCurrencyDeposit', [ - nativeCurrency, - networkName, - ])} - - ) - } - useIcon - iconFillColor="var(--color-error-default)" - type="danger" - /> -
+ + {t('buyAsset', [nativeCurrency])} + , + ///: END:ONLY_INCLUDE_IN + ]) + : t('insufficientCurrencyDeposit', [ + nativeCurrency, + networkName, + ]) + } + /> )}
-
- +
+

- - - -

-
- You do not have enough in your account to pay for transaction fees on Goerli network. Deposit from another account. -
-
+ You do not have enough in your account to pay for transaction fees on Goerli network. Deposit from another account. +

+