1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

UX: Multichain: Update deprecated variables (#19058)

This commit is contained in:
David Walsh 2023-05-09 03:05:47 -05:00 committed by GitHub
parent b981377304
commit ecea162b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View File

@ -22,7 +22,7 @@ import {
} from '../../component-library';
import {
Color,
TEXT_ALIGN,
TextAlign,
AlignItems,
DISPLAY,
TextVariant,
@ -170,7 +170,7 @@ export const AccountListItem = ({
marginInlineEnd={2}
/>
) : null}
<Text textAlign={TEXT_ALIGN.END} as="div">
<Text textAlign={TextAlign.End} as="div">
<UserPreferencedCurrencyDisplay
ethNumberOfDecimals={MAXIMUM_CURRENCY_DECIMALS}
value={identity.balance}
@ -190,7 +190,7 @@ export const AccountListItem = ({
<Text
variant={TextVariant.bodySm}
color={Color.textAlternative}
textAlign={TEXT_ALIGN.END}
textAlign={TextAlign.End}
as="div"
>
<UserPreferencedCurrencyDisplay

View File

@ -14,7 +14,7 @@ import {
BackgroundColor,
BorderRadius,
DISPLAY,
FONT_WEIGHT,
FontWeight,
IconColor,
Size,
} from '../../../helpers/constants/design-system';
@ -46,7 +46,7 @@ export const AccountPicker = ({ address, name, onClick, disabled }) => {
size={Size.XS}
borderColor={BackgroundColor.backgroundDefault} // we currently don't have white color for border hence using backgroundDefault as the border
/>
<Text as="span" fontWeight={FONT_WEIGHT.BOLD} ellipsis>
<Text as="span" fontWeight={FontWeight.Bold} ellipsis>
{name}
</Text>
<Icon

View File

@ -7,12 +7,12 @@ import {
BorderColor,
DISPLAY,
FLEX_DIRECTION,
FONT_WEIGHT,
FontWeight,
JustifyContent,
Size,
TextColor,
TextVariant,
TEXT_ALIGN,
TextAlign,
} from '../../../helpers/constants/design-system';
import {
AvatarNetwork,
@ -121,7 +121,7 @@ export const MultichainTokenListItem = ({
theme={dataTheme === 'light' ? 'dark' : 'light'}
>
<Text
fontWeight={FONT_WEIGHT.MEDIUM}
fontWeight={FontWeight.Medium}
variant={TextVariant.bodyMd}
ellipsis
>
@ -130,10 +130,10 @@ export const MultichainTokenListItem = ({
</Tooltip>
</Box>
<Text
fontWeight={FONT_WEIGHT.MEDIUM}
fontWeight={FontWeight.Medium}
variant={TextVariant.bodyMd}
width={[BLOCK_SIZES.TWO_THIRD]}
textAlign={TEXT_ALIGN.END}
textAlign={TextAlign.End}
>
{secondary}
</Text>