1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Update interactive-replacement-token-modal.js (#19003)

This commit is contained in:
Harsh Shukla 2023-05-05 16:39:13 +05:30 committed by GitHub
parent c7bb906b03
commit 36c4ff15b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,8 +15,8 @@ import {
FLEX_WRAP,
FLEX_DIRECTION,
BorderRadius,
FONT_WEIGHT,
TEXT_ALIGN,
FontWeight,
TextAlign,
AlignItems,
} from '../../../helpers/constants/design-system';
@ -53,7 +53,7 @@ const InteractiveReplacementTokenModal = () => {
alignItems={AlignItems.center}
paddingTop={5}
>
<Box display={DISPLAY.BLOCK} textAlign={TEXT_ALIGN.CENTER}>
<Box display={DISPLAY.BLOCK} textAlign={TextAlign.Center}>
<img
src={custodian.iconUrl}
width={45}
@ -64,7 +64,7 @@ const InteractiveReplacementTokenModal = () => {
);
} else {
img = (
<Box display={DISPLAY.BLOCK} textAlign={TEXT_ALIGN.CENTER}>
<Box display={DISPLAY.BLOCK} textAlign={TextAlign.Center}>
<Text>{custodian.displayName}</Text>
</Box>
);
@ -76,8 +76,8 @@ const InteractiveReplacementTokenModal = () => {
<Text
as="h4"
paddingTop={4}
textAlign={TEXT_ALIGN.CENTER}
fontWeight={FONT_WEIGHT.BOLD}
textAlign={TextAlign.Center}
fontWeight={FontWeight.Bold}
>
{t('custodyRefreshTokenModalTitle')}
</Text>
@ -85,18 +85,18 @@ const InteractiveReplacementTokenModal = () => {
as="p"
paddingTop={4}
paddingBottom={6}
textAlign={TEXT_ALIGN.LEFT}
textAlign={TextAlign.Left}
>
{t('custodyRefreshTokenModalDescription', [custodian.displayName])}
</Text>
<Text as="p" fontWeight={FONT_WEIGHT.MEDIUM}>
<Text as="p" fontWeight={FontWeight.Medium}>
{t('custodyRefreshTokenModalSubtitle')}
</Text>
<Text
as="p"
paddingTop={4}
paddingBottom={6}
textAlign={TEXT_ALIGN.LEFT}
textAlign={TextAlign.Left}
>
{t('custodyRefreshTokenModalDescription1')}
</Text>
@ -105,7 +105,7 @@ const InteractiveReplacementTokenModal = () => {
marginTop={4}
paddingTop={4}
paddingBottom={6}
textAlign={TEXT_ALIGN.LEFT}
textAlign={TextAlign.Left}
>
{t('custodyRefreshTokenModalDescription2')}
</Text>