FIX: Missing screen

This commit is contained in:
Marcos Rodriguez Velez 2024-05-05 23:11:29 -04:00
parent f55ad59439
commit fbab932f04
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7
3 changed files with 14 additions and 0 deletions

View File

@ -12,6 +12,7 @@ import {
WalletsAddMultisigStep2Component,
WalletsAddMultisigHelpComponent,
ImportWalletDiscoveryComponent,
ImportSpeedComponent,
} from './LazyLoadAddWalletStack';
import { AddWalletStackParamList } from '../typings/NavigationTypes';
import navigationStyle from '../components/navigationStyle';
@ -39,6 +40,11 @@ const AddWalletStack = () => {
component={ImportWalletComponent}
options={navigationStyle({ title: loc.wallets.import_title })(theme)}
/>
<Stack.Screen
name="ImportSpeed"
component={ImportSpeedComponent}
options={navigationStyle({ statusBarStyle: 'light', title: loc.wallets.import_title })(theme)}
/>
<Stack.Screen
name="ImportWalletDiscovery"
component={ImportWalletDiscoveryComponent}

View File

@ -5,6 +5,7 @@ import { View, ActivityIndicator, StyleSheet } from 'react-native';
const WalletsAdd = lazy(() => import('../screen/wallets/Add'));
const ImportCustomDerivationPath = lazy(() => import('../screen/wallets/importCustomDerivationPath'));
const ImportWalletDiscovery = lazy(() => import('../screen/wallets/importDiscovery'));
const ImportSpeed = lazy(() => import('../screen/wallets/importSpeed'));
const ImportWallet = lazy(() => import('../screen/wallets/import'));
const PleaseBackup = lazy(() => import('../screen/wallets/PleaseBackup'));
const PleaseBackupLNDHub = lazy(() => import('../screen/wallets/pleaseBackupLNDHub'));
@ -44,6 +45,12 @@ export const ImportWalletComponent = () => (
</Suspense>
);
export const ImportSpeedComponent = () => (
<Suspense fallback={<LoadingIndicator />}>
<ImportSpeed />
</Suspense>
);
export const PleaseBackupComponent = () => (
<Suspense fallback={<LoadingIndicator />}>
<PleaseBackup />

View File

@ -2,6 +2,7 @@ export type AddWalletStackParamList = {
AddWallet: undefined;
ImportWallet: undefined;
ImportWalletDiscovery: undefined;
ImportSpeed: undefined;
ImportCustomDerivationPath: undefined;
PleaseBackup: undefined;
PleaseBackupLNDHub: undefined;