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 component in: signature-request-siwe-tag\index.js (#18898)
This commit is contained in:
parent
f5f2e2e35f
commit
36092571c6
@ -1,16 +1,15 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import {
|
import {
|
||||||
TypographyVariant,
|
TextVariant,
|
||||||
Size,
|
Size,
|
||||||
DISPLAY,
|
DISPLAY,
|
||||||
AlignItems,
|
AlignItems,
|
||||||
FONT_WEIGHT,
|
|
||||||
BackgroundColor,
|
BackgroundColor,
|
||||||
TextColor,
|
TextColor,
|
||||||
} from '../../../../helpers/constants/design-system';
|
} from '../../../../helpers/constants/design-system';
|
||||||
import Box from '../../../ui/box';
|
import Box from '../../../ui/box';
|
||||||
import Typography from '../../../ui/typography/typography';
|
import { Text } from '../../../component-library';
|
||||||
|
|
||||||
const SignatureRequestSIWETag = ({ text }) => {
|
const SignatureRequestSIWETag = ({ text }) => {
|
||||||
return (
|
return (
|
||||||
@ -24,14 +23,14 @@ const SignatureRequestSIWETag = ({ text }) => {
|
|||||||
paddingLeft={4}
|
paddingLeft={4}
|
||||||
paddingRight={4}
|
paddingRight={4}
|
||||||
>
|
>
|
||||||
<Typography
|
<Text
|
||||||
fontWeight={FONT_WEIGHT.BOLD}
|
|
||||||
margin={0}
|
margin={0}
|
||||||
variant={TypographyVariant.H7}
|
variant={TextVariant.bodySmBold}
|
||||||
|
as="h6"
|
||||||
color={TextColor.errorInverse}
|
color={TextColor.errorInverse}
|
||||||
>
|
>
|
||||||
{text}
|
{text}
|
||||||
</Typography>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user