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 PropTypes from 'prop-types';
|
||||
import {
|
||||
TypographyVariant,
|
||||
TextVariant,
|
||||
Size,
|
||||
DISPLAY,
|
||||
AlignItems,
|
||||
FONT_WEIGHT,
|
||||
BackgroundColor,
|
||||
TextColor,
|
||||
} from '../../../../helpers/constants/design-system';
|
||||
import Box from '../../../ui/box';
|
||||
import Typography from '../../../ui/typography/typography';
|
||||
import { Text } from '../../../component-library';
|
||||
|
||||
const SignatureRequestSIWETag = ({ text }) => {
|
||||
return (
|
||||
@ -24,14 +23,14 @@ const SignatureRequestSIWETag = ({ text }) => {
|
||||
paddingLeft={4}
|
||||
paddingRight={4}
|
||||
>
|
||||
<Typography
|
||||
fontWeight={FONT_WEIGHT.BOLD}
|
||||
<Text
|
||||
margin={0}
|
||||
variant={TypographyVariant.H7}
|
||||
variant={TextVariant.bodySmBold}
|
||||
as="h6"
|
||||
color={TextColor.errorInverse}
|
||||
>
|
||||
{text}
|
||||
</Typography>
|
||||
</Text>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user