BlueWallet/navigation/LazyLoadPaymentCodeStack.tsx

18 lines
539 B
TypeScript
Raw Normal View History

2024-05-11 12:50:06 -04:00
import React, { lazy, Suspense } from 'react';
import { LazyLoadingIndicator } from './LazyLoadingIndicator';
const PaymentCode = lazy(() => import('../screen/wallets/paymentCode'));
const PaymentCodesList = lazy(() => import('../screen/wallets/paymentCodesList'));
export const PaymentCodeComponent = () => (
<Suspense fallback={<LazyLoadingIndicator />}>
<PaymentCode />
</Suspense>
);
export const PaymentCodesListComponent = () => (
<Suspense fallback={<LazyLoadingIndicator />}>
<PaymentCodesList />
</Suspense>
);