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:
parent
b981377304
commit
ecea162b10
@ -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
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user