From fe26e6a82c21f320564fe902267aa1cc269f1da6 Mon Sep 17 00:00:00 2001 From: Om Raval Date: Thu, 13 Apr 2023 16:17:42 +0530 Subject: [PATCH] Part of #17670: Replace Typography with Text component --- .../smart-transaction-status.js | 62 +++++++++---------- 1 file changed, 28 insertions(+), 34 deletions(-) diff --git a/ui/pages/swaps/smart-transaction-status/smart-transaction-status.js b/ui/pages/swaps/smart-transaction-status/smart-transaction-status.js index 3b5851543e79..a1fee0351fb3 100644 --- a/ui/pages/swaps/smart-transaction-status/smart-transaction-status.js +++ b/ui/pages/swaps/smart-transaction-status/smart-transaction-status.js @@ -32,12 +32,12 @@ import { DEFAULT_ROUTE, BUILD_QUOTE_ROUTE, } from '../../../helpers/constants/routes'; -import Typography from '../../../components/ui/typography'; +import { Text } from '../../../components/component-library'; import Box from '../../../components/ui/box'; import UrlIcon from '../../../components/ui/url-icon'; import { BLOCK_SIZES, - TypographyVariant, + TextVariant, JustifyContent, DISPLAY, FONT_WEIGHT, @@ -330,21 +330,17 @@ export default function SmartTransactionStatusPage() { justifyContent={JustifyContent.center} alignItems={AlignItems.center} > - + {`${fetchParams?.value && Number(fetchParams.value).toFixed(5)} `} - - + {fetchParamsSourceTokenInfo.symbol ?? latestSmartTransaction?.sourceTokenSymbol} - + {fetchParamsSourceTokenInfo.iconUrl ? ( ) : null} - {`~${destinationValue && Number(destinationValue).toFixed(5)} `} - - + {fetchParamsDestinationTokenInfo.symbol ?? latestSmartTransaction?.destinationTokenSymbol} - + - {`${t('stxSwapCompleteIn')} `} - - + {showRemainingTimeInMinAndSec(timeLeftForPendingStxInSec)} - + )} - {headerText} - + {isSmartTransactionPending && (
)} {description && ( - {description} - + )} {blockExplorerUrl && ( {subDescription && ( - {subDescription} - + )} {showCancelSwapLink &&