BlueWallet/navigation/LazyLoadPaymentCodeStack.tsx

14 lines
372 B
TypeScript
Raw Normal View History

2024-06-07 20:50:50 +02:00
import React, { lazy, Suspense } from 'react';
import { LazyLoadingIndicator } from './LazyLoadingIndicator';
const PaymentCodesList = lazy(() => import('../screen/wallets/PaymentCodesList'));
2024-06-11 02:44:05 +02:00
const PaymentCodesListComponent = () => (
2024-06-07 20:50:50 +02:00
<Suspense fallback={<LazyLoadingIndicator />}>
<PaymentCodesList />
</Suspense>
);
2024-06-11 02:44:05 +02:00
export default PaymentCodesListComponent;