Skip to content

Commit

Permalink
fixed: remove duplicate component, fixed text
Browse files Browse the repository at this point in the history
  • Loading branch information
zzggo committed Dec 19, 2024
1 parent bb4bcc9 commit bb3c85d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 358 deletions.
19 changes: 3 additions & 16 deletions src/ui/FRWComponent/LandingPages/AllSet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,6 @@ const AllSet = ({ handleSwitchTab, variant = 'register' }: AllSetProps) => {
}
}, [variant, loadScript, usewallet]);

const getMessage = () => {
if (variant === 'recover') {
return {
title: chrome.i18n.getMessage('You__are') + ' ' + chrome.i18n.getMessage('all__set'),
subtitle: chrome.i18n.getMessage('Start__exploring__with__Lilico__now'),
};
}
return {
title: chrome.i18n.getMessage('You__are') + chrome.i18n.getMessage('Allset'),
subtitle: chrome.i18n.getMessage('You_can_start_experiencing_Lilico_now'),
};
};

return (
<>
<Box className="registerBox">
Expand All @@ -57,13 +44,13 @@ const AllSet = ({ handleSwitchTab, variant = 'register' }: AllSetProps) => {
image={AllSetIcon}
/>
<Typography variant="h4">
{getMessage().title.split(' ')[0]}
{chrome.i18n.getMessage('You__are')}
<Box display="inline" color="primary.main">
{getMessage().title.split(' ')[1]}
{' ' + chrome.i18n.getMessage('all__set')}
</Box>
</Typography>
<Typography variant="body1" color="text.secondary">
{getMessage().subtitle}
{chrome.i18n.getMessage('You_can_start_experiencing_Lilico_now')}
</Typography>

<Box sx={{ flexGrow: 1 }} />
Expand Down
170 changes: 0 additions & 170 deletions src/ui/views/LandingPages/Welcome/AccountImport/GoogleBackup.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/ui/views/LandingPages/Welcome/AccountImport/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { useHistory } from 'react-router-dom';

import { getHashAlgo, getSignAlgo } from '@/shared/utils/algo';
import AllSet from '@/ui/FRWComponent/LandingPages/AllSet';
import GoogleBackup from '@/ui/FRWComponent/LandingPages/GoogleBackup';
import LandingComponents from '@/ui/FRWComponent/LandingPages/LandingComponents';
import PickUsername from '@/ui/FRWComponent/LandingPages/PickUsername';
import SetPassword from '@/ui/FRWComponent/LandingPages/SetPassword';
import { useNavigation } from '@/ui/utils/landingPage';
import { storage } from 'background/webapi';
import { useWallet } from 'ui/utils';

import GoogleBackup from './GoogleBackup';
import ImportTabs from './ImportTabs';
import RecoverPassword from './RecoverPassword';

Expand Down
170 changes: 0 additions & 170 deletions src/ui/views/LandingPages/Welcome/Register/GoogleBackup.tsx

This file was deleted.

Loading

0 comments on commit bb3c85d

Please sign in to comment.