Skip to content

Commit

Permalink
fix: backup seedphrase style
Browse files Browse the repository at this point in the history
  • Loading branch information
vvvvvv1vvvvvv committed Nov 22, 2024
1 parent b0a93b0 commit f540464
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 34 deletions.
64 changes: 31 additions & 33 deletions src/ui/views/AddressBackup/Mnemonics.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useWallet } from 'ui/utils';
import './style.less';
import { InfoCircleOutlined } from '@ant-design/icons';
import { Button } from 'antd';
Expand All @@ -20,7 +19,6 @@ import QRCode from 'qrcode.react';
import { ReactComponent as RcIconQrCode } from 'ui/assets/qrcode-cc.svg';

const AddressBackup = () => {
const wallet = useWallet();
const { t } = useTranslation();

const history = useHistory();
Expand Down Expand Up @@ -91,11 +89,11 @@ const AddressBackup = () => {
)}
{t('page.backupSeedPhrase.title')}
</header>
<div className="alert mb-[34px]">
<div className="alert mb-20">
<InfoCircleOutlined className="rotate-180" />
{t('page.backupSeedPhrase.alert')}
</div>
<div className="mb-[74px]">
<div className="mb-[94px]">
<div className="relative">
<div
onClick={() => setMasked(false)}
Expand All @@ -106,6 +104,34 @@ const AddressBackup = () => {
{t('page.backupSeedPhrase.clickToShow')}
</p>
</div>
<div className="flex items-center gap-[24px] justify-center mb-20">
<div
onClick={handleShowQrCode}
className={clsx(
'copy text-r-neutral-foot',
masked ? 'invisible' : 'visible'
)}
>
<ThemeIcon
src={RcIconQrCode}
className="text-r-neutral-foot w-[16px] h-[16px]"
/>
{t('page.backupSeedPhrase.showQrCode')}
</div>
<div
onClick={onCopyMnemonics}
className={clsx(
'copy text-r-neutral-foot',
masked ? 'invisible' : 'visible'
)}
>
<ThemeIcon
src={RcIconCopyCC}
className="text-r-neutral-foot w-[16px] h-[16px]"
/>
{t('page.backupSeedPhrase.copySeedPhrase')}
</div>
</div>
<div
className="rounded-[6px] flex items-center w-full"
style={masked ? { filter: 'blur(3px)' } : {}}
Expand All @@ -122,36 +148,8 @@ const AddressBackup = () => {
)}
</div>
</div>
<div className="flex items-center gap-[24px] justify-center">
<div
onClick={handleShowQrCode}
className={clsx(
'copy text-r-neutral-foot',
masked ? 'invisible' : 'visible'
)}
>
<ThemeIcon
src={RcIconQrCode}
className="text-r-neutral-foot w-[16px] h-[16px]"
/>
{t('page.backupSeedPhrase.showQrCode')}
</div>
<div
onClick={onCopyMnemonics}
className={clsx(
'copy text-r-neutral-foot',
masked ? 'invisible' : 'visible'
)}
>
<ThemeIcon
src={RcIconCopyCC}
className="text-r-neutral-foot w-[16px] h-[16px]"
/>
{t('page.backupSeedPhrase.copySeedPhrase')}
</div>
</div>
</div>
<div className="footer pb-[20px]">
<div className="footer pb-[20px] z-20">
<Button
type="primary"
className="w-full"
Expand Down
1 change: 0 additions & 1 deletion src/ui/views/AddressBackup/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@
color: @color-comment-1;
gap: 6px;
cursor: pointer;
margin-top: 16px;
}

.footer {
Expand Down

0 comments on commit f540464

Please sign in to comment.