mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Part of 17670: Replace Typography with Text in detected-token-address.js (#18435)
* feat: replaced typography with text comp * fix: changed h7 to h6 --------- Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
This commit is contained in:
parent
db4c4317dd
commit
b53d335b2c
@ -6,16 +6,16 @@ import { useCopyToClipboard } from '../../../../hooks/useCopyToClipboard';
|
||||
|
||||
import Box from '../../../ui/box';
|
||||
import Button from '../../../ui/button';
|
||||
import Typography from '../../../ui/typography';
|
||||
import Tooltip from '../../../ui/tooltip';
|
||||
|
||||
import {
|
||||
DISPLAY,
|
||||
TextColor,
|
||||
TypographyVariant,
|
||||
TextVariant,
|
||||
} from '../../../../helpers/constants/design-system';
|
||||
|
||||
import { shortenAddress } from '../../../../helpers/utils/util';
|
||||
import { Text } from '../../../component-library';
|
||||
|
||||
const DetectedTokenAddress = ({ tokenAddress }) => {
|
||||
const t = useI18nContext();
|
||||
@ -23,17 +23,18 @@ const DetectedTokenAddress = ({ tokenAddress }) => {
|
||||
|
||||
return (
|
||||
<Box display={DISPLAY.INLINE_FLEX} className="detected-token-address">
|
||||
<Typography variant={TypographyVariant.H7} color={TextColor.textDefault}>
|
||||
<Text variant={TextVariant.bodySm} as="h6" color={TextColor.textDefault}>
|
||||
{`${t('tokenAddress')}:`}
|
||||
</Typography>
|
||||
<Typography
|
||||
variant={TypographyVariant.H7}
|
||||
</Text>
|
||||
<Text
|
||||
variant={TextVariant.bodySm}
|
||||
as="h6"
|
||||
color={TextColor.primaryDefault}
|
||||
marginLeft={2}
|
||||
marginRight={2}
|
||||
>
|
||||
{shortenAddress(tokenAddress)}
|
||||
</Typography>
|
||||
</Text>
|
||||
<Tooltip
|
||||
position="bottom"
|
||||
title={copied ? t('copiedExclamation') : t('copyToClipboard')}
|
||||
|
Loading…
x
Reference in New Issue
Block a user