From 944d39ed3ae06e4030428b72b7a72cbf2fd1b9b9 Mon Sep 17 00:00:00 2001 From: Harsh Shukla <125105825+PrgrmrHarshShukla@users.noreply.github.com> Date: Fri, 5 May 2023 16:45:39 +0530 Subject: [PATCH] Part of #17670: Replace Typography with Text component in smart-transaction-status.js (#18743) * Update smart-transaction-status.js * Update smart-transaction-status.js * Update smart-transaction-status.js again. * Update smart-transaction-status.js * Update smart-transaction-status.js * Update ui/pages/swaps/smart-transaction-status/smart-transaction-status.js Co-authored-by: George Marshall * Update smart-transaction-status.js --------- Co-authored-by: Brad Decker Co-authored-by: George Marshall --- .../smart-transaction-status.js | 34 +++++++++++++------ 1 file changed, 23 insertions(+), 11 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 a1fee0351..f926ac30b 100644 --- a/ui/pages/swaps/smart-transaction-status/smart-transaction-status.js +++ b/ui/pages/swaps/smart-transaction-status/smart-transaction-status.js @@ -3,7 +3,6 @@ import { useDispatch, useSelector, shallowEqual } from 'react-redux'; import { useHistory } from 'react-router-dom'; import { getBlockExplorerLink } from '@metamask/etherscan-link'; import { isEqual } from 'lodash'; - import { I18nContext } from '../../../contexts/i18n'; import { getFetchParams, @@ -40,7 +39,7 @@ import { TextVariant, JustifyContent, DISPLAY, - FONT_WEIGHT, + FontWeight, AlignItems, TextColor, } from '../../../helpers/constants/design-system'; @@ -330,13 +329,19 @@ export default function SmartTransactionStatusPage() { justifyContent={JustifyContent.center} alignItems={AlignItems.center} > - + {`${fetchParams?.value && Number(fetchParams.value).toFixed(5)} `} {fetchParamsSourceTokenInfo.symbol ?? latestSmartTransaction?.sourceTokenSymbol} @@ -369,14 +374,16 @@ export default function SmartTransactionStatusPage() { {`~${destinationValue && Number(destinationValue).toFixed(5)} `} {fetchParamsDestinationTokenInfo.symbol ?? latestSmartTransaction?.destinationTokenSymbol} @@ -403,14 +410,16 @@ export default function SmartTransactionStatusPage() { {`${t('stxSwapCompleteIn')} `} {showRemainingTimeInMinAndSec(timeLeftForPendingStxInSec)} @@ -420,7 +429,8 @@ export default function SmartTransactionStatusPage() { {headerText} @@ -441,7 +451,8 @@ export default function SmartTransactionStatusPage() { {description && ( {description} @@ -460,7 +471,8 @@ export default function SmartTransactionStatusPage() { {subDescription && ( {subDescription}