mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Part of #18714 Replace deprecated design system typography consts with enums in: 'srp-input' (#19040)
* Part of #18714 Replace deprecated design system typography consts with enums in: 'srp-input' * Update ui/components/app/srp-input/srp-input.js Co-authored-by: George Marshall <georgewrmarshall@gmail.com> * Update srp-input.js --------- Co-authored-by: Brad Decker <bhdecker84@gmail.com> Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
This commit is contained in:
parent
e29faca3a6
commit
1c346674df
@ -6,13 +6,12 @@ import TextField from '../../ui/text-field';
|
||||
import { clearClipboard } from '../../../helpers/utils/util';
|
||||
import ActionableMessage from '../../ui/actionable-message';
|
||||
import Dropdown from '../../ui/dropdown';
|
||||
import Typography from '../../ui/typography';
|
||||
import ShowHideToggle from '../../ui/show-hide-toggle';
|
||||
import {
|
||||
FONT_WEIGHT,
|
||||
TEXT_ALIGN,
|
||||
TypographyVariant,
|
||||
TextAlign,
|
||||
TextVariant,
|
||||
} from '../../../helpers/constants/design-system';
|
||||
import { Text } from '../../component-library';
|
||||
import { parseSecretRecoveryPhrase } from './parse-secret-recovery-phrase';
|
||||
|
||||
const defaultNumberOfWords = 12;
|
||||
@ -129,13 +128,9 @@ export default function SrpInput({ onChange, srpText }) {
|
||||
return (
|
||||
<div className="import-srp__container">
|
||||
<label className="import-srp__srp-label">
|
||||
<Typography
|
||||
align={TEXT_ALIGN.LEFT}
|
||||
variant={TypographyVariant.H4}
|
||||
fontWeight={FONT_WEIGHT.BOLD}
|
||||
>
|
||||
<Text align={TextAlign.Left} variant={TextVariant.headingSm} as="h4">
|
||||
{srpText}
|
||||
</Typography>
|
||||
</Text>
|
||||
</label>
|
||||
<ActionableMessage
|
||||
className="import-srp__paste-tip"
|
||||
@ -170,7 +165,7 @@ export default function SrpInput({ onChange, srpText }) {
|
||||
return (
|
||||
<div key={index} className="import-srp__srp-word">
|
||||
<label htmlFor={id} className="import-srp__srp-word-label">
|
||||
<Typography>{`${index + 1}.`}</Typography>
|
||||
<Text>{`${index + 1}.`}</Text>
|
||||
</label>
|
||||
<TextField
|
||||
id={id}
|
||||
|
Loading…
Reference in New Issue
Block a user