mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
17 lines
539 B
TypeScript
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>
|
|
);
|