From ba90e57663d026774ee73bd95cda108a70a233d0 Mon Sep 17 00:00:00 2001 From: Garrett Bear Date: Tue, 23 May 2023 12:29:14 -0700 Subject: [PATCH] Feat/18444/text align update app folder (#19216) * Update TEXT_ALIGN const to TextAlign enum * update TEXT_ALIGN to TextAlign in app folder --- .../app/confirm-page-container/snaps/snap-insight.js | 4 ++-- .../app/custom-spending-cap/custom-spending-cap.js | 4 ++-- .../import-token-link/import-token-link.component.js | 4 ++-- .../ledger-instruction-field.js | 6 +++--- ui/components/app/nfts-tab/nfts-tab.js | 12 ++++++------ .../signature-request-original.component.js | 8 ++++---- .../signature-request/signature-request.component.js | 8 ++++---- .../snap-install-warning/snap-install-warning.js | 6 +++--- .../transaction-detail-item.component.js | 10 +++++----- .../confirm-remove-jwt-modal.js | 4 ++-- .../transaction-failed-modal/transaction-failed.js | 10 +++++----- 11 files changed, 38 insertions(+), 38 deletions(-) diff --git a/ui/components/app/confirm-page-container/snaps/snap-insight.js b/ui/components/app/confirm-page-container/snaps/snap-insight.js index 703bcff67..d7fc925d7 100644 --- a/ui/components/app/confirm-page-container/snaps/snap-insight.js +++ b/ui/components/app/confirm-page-container/snaps/snap-insight.js @@ -8,7 +8,7 @@ import { AlignItems, FLEX_DIRECTION, JustifyContent, - TEXT_ALIGN, + TextAlign, TextColor, TextVariant, } from '../../../../helpers/constants/design-system'; @@ -53,7 +53,7 @@ export const SnapInsight = ({ transaction, origin, chainId, selectedSnap }) => { marginBottom={hasNoData && 12} alignItems={hasNoData && AlignItems.center} justifyContent={hasNoData && JustifyContent.center} - textAlign={hasNoData && TEXT_ALIGN.CENTER} + textAlign={hasNoData && TextAlign.Center} className="snap-insight" > {!loading && !error && ( diff --git a/ui/components/app/custom-spending-cap/custom-spending-cap.js b/ui/components/app/custom-spending-cap/custom-spending-cap.js index 0614b0f36..d2da1adfe 100644 --- a/ui/components/app/custom-spending-cap/custom-spending-cap.js +++ b/ui/components/app/custom-spending-cap/custom-spending-cap.js @@ -13,7 +13,7 @@ import { AlignItems, DISPLAY, FLEX_DIRECTION, - TEXT_ALIGN, + TextAlign, TextVariant, JustifyContent, Size, @@ -273,7 +273,7 @@ export default function CustomSpendingCap({ marginLeft="auto" paddingRight={4} paddingBottom={2} - textAlign={TEXT_ALIGN.END} + textAlign={TextAlign.End} className={classnames('custom-spending-cap__max', { 'custom-spending-cap__max--with-error-message': error, })} diff --git a/ui/components/app/import-token-link/import-token-link.component.js b/ui/components/app/import-token-link/import-token-link.component.js index cf7ebae1f..98744b048 100644 --- a/ui/components/app/import-token-link/import-token-link.component.js +++ b/ui/components/app/import-token-link/import-token-link.component.js @@ -5,7 +5,7 @@ import { useI18nContext } from '../../../hooks/useI18nContext'; import { IMPORT_TOKEN_ROUTE } from '../../../helpers/constants/routes'; import Button from '../../ui/button'; import Box from '../../ui/box/box'; -import { TEXT_ALIGN } from '../../../helpers/constants/design-system'; +import { TextAlign } from '../../../helpers/constants/design-system'; import { detectNewTokens } from '../../../store/actions'; import { MetaMetricsContext } from '../../../contexts/metametrics'; import { @@ -33,7 +33,7 @@ export default function ImportTokenLink() { Boolean(process.env.IN_TEST); return ( - + {isTokenDetectionAvailable && ( <>