Skip to content

Commit

Permalink
import wallet text alignment (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-schrammel authored Apr 26, 2023
1 parent 110cb50 commit b010bd7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 37 deletions.
4 changes: 2 additions & 2 deletions src/core/languages/_english.json
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@
"phrase_copied": "Recovery Phrase Copied"
},
"import_or_connect": {
"title": "Import or Connect",
"title": "Restore or Connect",
"explanation": "Store these words can access your entire wallet! Store them somewhere safe never share them.",
"import_wallet": "Import with a Secret Recovery Phrase or Private Key",
"import_wallet_description": "Add a wallet using your Secret Recovery Phrase or a Private Key.",
Expand Down Expand Up @@ -746,4 +746,4 @@
"wallet_watching_mode": "This wallet is currently in 'Watching' mode",
"coming_soon": "Coming Soon!"
}
}
}
21 changes: 4 additions & 17 deletions src/entries/popup/components/ImportWallet/ImportWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,23 +137,10 @@ const ImportWallet = ({ onboarding = false }: { onboarding?: boolean }) => {
return (
<>
<Box alignItems="center" paddingBottom="10px">
<Inline
wrap={false}
alignVertical="center"
alignHorizontal="center"
space="5px"
>
<Symbol
symbol="doc.plaintext"
size={16}
color="transparent"
weight={'bold'}
/>
<Text size="16pt" weight="bold" color="label" align="center">
{i18n.t('import_wallet.title')}
</Text>
</Inline>
<Box padding="16px" paddingTop="10px">
<Text size="16pt" weight="bold" color="label" align="center">
{i18n.t('import_wallet.title')}
</Text>
<Box padding="16px" paddingTop="12px">
<Text
size="12pt"
weight="regular"
Expand Down
23 changes: 5 additions & 18 deletions src/entries/popup/pages/importOrConnect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React, { useCallback } from 'react';

import { i18n } from '~/core/languages';
import { Box, Inline, Separator, Symbol, Text } from '~/design-system';
import { Box, Separator, Text } from '~/design-system';

import { FullScreenContainer } from '../../components/FullScreen/FullScreenContainer';
import { OnboardMenu } from '../../components/OnboardMenu/OnboardMenu';
Expand All @@ -22,23 +22,10 @@ export function ImportOrConnect() {
return (
<FullScreenContainer>
<Box alignItems="center" paddingBottom="10px">
<Inline
wrap={false}
alignVertical="center"
alignHorizontal="center"
space="5px"
>
<Symbol
symbol="doc.plaintext"
size={16}
color="transparent"
weight={'bold'}
/>
<Text size="16pt" weight="bold" color="label" align="center">
{i18n.t('import_or_connect.title')}
</Text>
</Inline>
<Box padding="16px" paddingTop="10px">
<Text size="16pt" weight="bold" color="label" align="center">
{i18n.t('import_or_connect.title')}
</Text>
<Box padding="16px" paddingTop="12px">
<Text
size="12pt"
weight="regular"
Expand Down

0 comments on commit b010bd7

Please sign in to comment.