mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-20 18:21:57 +01:00
19 lines
540 B
TypeScript
19 lines
540 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>
|
|
);
|