Skip to content

Commit

Permalink
Migrate Typography to Text in creation-successful.js
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed Jun 27, 2024
1 parent 721673e commit b6596e5
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions ui/pages/onboarding-flow/creation-successful/creation-successful.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { useHistory } from 'react-router-dom';
import { useSelector } from 'react-redux';

import Box from '../../../components/ui/box';
import Typography from '../../../components/ui/typography';
import { Text } from '../../../components/component-library';
import Button from '../../../components/ui/button';
import {
FONT_WEIGHT,
TEXT_ALIGN,
TypographyVariant,
FontWeight,
TextAlign,
TextVariant,
AlignItems,
} from '../../../helpers/constants/design-system';
import { useI18nContext } from '../../../hooks/useI18nContext';
Expand Down Expand Up @@ -40,43 +40,44 @@ export default function CreationSuccessful() {

return (
<div className="creation-successful" data-testid="creation-successful">
<Box textAlign={TEXT_ALIGN.CENTER}>
<Box textAlign={TextAlign.Center}>
<img src="./images/tada.png" />
<Typography
variant={TypographyVariant.H2}
fontWeight={FONT_WEIGHT.BOLD}
<Text
variant={TextVariant.headingLg}
fontWeight={FontWeight.Bold}
margin={6}
>
{t('walletCreationSuccessTitle')}
</Typography>
<Typography variant={TypographyVariant.H4}>
</Text>
<Text variant={TextVariant.headingSm} fontWeight={FontWeight.Normal}>
{t('walletCreationSuccessDetail')}
</Typography>
</Text>
</Box>
<Typography
variant={TypographyVariant.H4}
boxProps={{ align: AlignItems.flexStart }}
<Text
variant={TextVariant.headingSm}
alignItems={AlignItems.flexStart}
fontWeight={FontWeight.Normal}
marginLeft={12}
>
{t('remember')}
</Typography>
</Text>
<ul>
<li>
<Typography variant={TypographyVariant.H4}>
<Text variant={TextVariant.headingSm} fontWeight={FontWeight.Normal}>
{isBeta()
? t('betaWalletCreationSuccessReminder1')
: t('walletCreationSuccessReminder1')}
</Typography>
</Text>
</li>
<li>
<Typography variant={TypographyVariant.H4}>
<Text variant={TextVariant.headingSm} fontWeight={FontWeight.Normal}>
{isBeta()
? t('betaWalletCreationSuccessReminder2')
: t('walletCreationSuccessReminder2')}
</Typography>
</Text>
</li>
<li>
<Typography variant={TypographyVariant.H4}>
<Text variant={TextVariant.headingSm} fontWeight={FontWeight.Normal}>
{t('walletCreationSuccessReminder3', [
<span
key="creation-successful__bold"
Expand All @@ -85,7 +86,7 @@ export default function CreationSuccessful() {
{t('walletCreationSuccessReminder3BoldSection')}
</span>,
])}
</Typography>
</Text>
</li>
<li>
<Button
Expand Down

0 comments on commit b6596e5

Please sign in to comment.