1
0
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:
Harsh Shukla 2023-05-02 06:21:24 +05:30 committed by GitHub
parent f5f2e2e35f
commit 36092571c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
);
};