mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
fix: Suspense the lazy loaded components in banking pages
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// @ts-nocheck
|
||||
import { Suspense, lazy } from 'react';
|
||||
import { Spinner } from '@blueprintjs/core';
|
||||
import { AppContentShell } from '@/components/AppShell';
|
||||
|
||||
const CategorizeTransactionAside = lazy(() =>
|
||||
import('../CategorizeTransactionAside/CategorizeTransactionAside').then(
|
||||
(module) => ({ default: module.CategorizeTransactionAside }),
|
||||
),
|
||||
);
|
||||
|
||||
export function AccountTransactionsAside() {
|
||||
return (
|
||||
<AppContentShell.Aside>
|
||||
<Suspense fallback={<Spinner size={20} />}>
|
||||
<CategorizeTransactionAside />
|
||||
</Suspense>
|
||||
</AppContentShell.Aside>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user