From 30bc9a923e93824ceff5fb1aaf7ed0a0766ef66e Mon Sep 17 00:00:00 2001 From: George Marshall Date: Thu, 16 Feb 2023 18:33:35 -0800 Subject: [PATCH] Part of 17670: Replace Typography with Text approve-content-card (#17753) * Updating Typography to Text approve-content-card * Adding h6 tags * Update ui/components/app/approve-content-card/approve-content-card.js Co-authored-by: Nidhi Kumari --------- Co-authored-by: Nidhi Kumari --- .../approve-content-card.js | 67 ++++++++++--------- 1 file changed, 36 insertions(+), 31 deletions(-) diff --git a/ui/components/app/approve-content-card/approve-content-card.js b/ui/components/app/approve-content-card/approve-content-card.js index 1b613f37c..532793e01 100644 --- a/ui/components/app/approve-content-card/approve-content-card.js +++ b/ui/components/app/approve-content-card/approve-content-card.js @@ -4,7 +4,7 @@ import classnames from 'classnames'; import Box from '../../ui/box/box'; import Button from '../../ui/button'; import EditGasFeeButton from '../edit-gas-fee-button/edit-gas-fee-button'; -import Typography from '../../ui/typography/typography'; +import { Text } from '../../component-library'; import { AlignItems, BLOCK_SIZES, @@ -14,7 +14,7 @@ import { JustifyContent, TEXT_ALIGN, TextColor, - TypographyVariant, + TextVariant, } from '../../../helpers/constants/design-system'; import { I18nContext } from '../../../contexts/i18n'; import GasDetailsItem from '../gas-details-item/gas-details-item'; @@ -73,24 +73,22 @@ export default function ApproveContentCard({ marginLeft={4} className="approve-content-card-container__card-header__title" > - + {title} - + )} {showEdit && (!showAdvanceGasFeeOptions || !supportsEIP1559) && ( )} @@ -132,14 +130,15 @@ export default function ApproveContentCard({ display={DISPLAY.FLEX} justifyContent={JustifyContent.spaceBetween} > - {t('transactionDetailLayer2GasHeading')} {`${ethTransactionTotal} ${nativeCurrency}`} - + - {t('feeAssociatedRequest')} - + {useCurrencyRateCheck && ( - {formatCurrency( fiatTransactionTotal, currentCurrency, )} - + )} - {`${ethTransactionTotal} ${nativeCurrency}`} - + @@ -195,35 +197,38 @@ export default function ApproveContentCard({ {renderDataContent && ( - {isSetApproveForAll ? t('functionSetApprovalForAll') : t('functionApprove')} - + {isSetApproveForAll && isApprovalOrRejection !== undefined ? ( - {`${t('parameters')}: ${isApprovalOrRejection}`} - + ) : null} - {data} - + )}