Skip to content

Commit

Permalink
feat: 🎸 add dev case
Browse files Browse the repository at this point in the history
  • Loading branch information
y-ptk committed Feb 8, 2025
1 parent f901493 commit b573164
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions packages/mobile-aelf/js/pages/Home/HomeTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { useCheckSecurityLock } from 'hooks/securityLock';
import { useAppCommonDispatch, useAppEOASelector } from '@portkey-wallet/hooks';

import { resetWallet } from '@portkey-wallet/store/store-eoa/wallet/actions';
import { useAddressSelect } from '../../My/WalletManagement/hooks/useAddressSelect';

const HomeTab: React.FC<any> = ({ _ }) => {
const a = useAppEOASelector(state => state);
Expand Down Expand Up @@ -120,6 +121,8 @@ const HomeTab: React.FC<any> = ({ _ }) => {
navigationService.reset('Referral');
}
}, [walletList.length]);

const { showAddressSelectModal } = useAddressSelect();
return (
<SafeAreaBox edges={['top', 'right', 'left']} style={{ backgroundColor: theme.colors.bgBase1 }}>
<ScrollView>
Expand All @@ -138,13 +141,22 @@ const HomeTab: React.FC<any> = ({ _ }) => {
<CommonButton type="primary" onPress={() => navigationService.push('Home')} style={{ marginTop: 20 }}>
Home
</CommonButton>
<CommonButton type="primary" onPress={() => navigationService.push('ImportWallet')} style={{ marginTop: 20 }}>
<CommonButton
type="primary"
onPress={() => navigationService.push('WalletManagement')}
style={{ marginTop: 20 }}>
Wallet Management
</CommonButton>
<CommonButton type="primary" onPress={showAddressSelectModal} style={{ marginTop: 20 }}>
Wallet Management - Address Select Modal
</CommonButton>
<CommonButton type="primary" onPress={() => navigationService.push('ImportWallet')} style={{ marginTop: 10 }}>
Import Wallets
</CommonButton>
<CommonButton
type="primary"
onPress={() => navigationService.push('WalletImportTypeSelect')}
style={{ marginTop: 20 }}>
style={{ marginTop: 10 }}>
WalletImportTypeSelect
</CommonButton>
<CommonButton
Expand All @@ -167,13 +179,13 @@ const HomeTab: React.FC<any> = ({ _ }) => {
],
})
}
style={{ marginTop: 40 }}>
style={{ marginTop: 10 }}>
Confirm Backup
</CommonButton>
<CommonButton
type="primary"
onPress={() => navigationService.push('ManualBackupSuccess')}
style={{ marginTop: 20 }}>
style={{ marginTop: 10 }}>
Confirm Backup Success
</CommonButton>
<CommonButton
Expand All @@ -183,10 +195,10 @@ const HomeTab: React.FC<any> = ({ _ }) => {
pin: credentials?.pin,
})
}
style={{ marginTop: 40 }}>
style={{ marginTop: 10 }}>
Manual Backup
</CommonButton>
<CommonButton type="primary" onPress={() => navigationService.push('CloudBackup')} style={{ marginTop: 40 }}>
<CommonButton type="primary" onPress={() => navigationService.push('CloudBackup')} style={{ marginTop: 10 }}>
CloudBackup
</CommonButton>
<CommonButton type="primary" onPress={() => navigationService.push('CloudBackupDev')} style={{ marginTop: 10 }}>
Expand Down

0 comments on commit b573164

Please sign in to comment.