1
0
Fork 0
mirror of https://github.com/BlueWallet/BlueWallet.git synced 2025-03-16 20:21:35 +01:00
BlueWallet/navigation/LazyLoadPaymentCodeStack.tsx
Marcos Rodriguez Velez 511d3df40d
REF: Payment code lazy
2024-05-11 12:50:06 -04:00

17 lines
539 B
TypeScript

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>
);