mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
re-structure to monorepo.
This commit is contained in:
14
packages/webapp/src/components/Drawer/DrawerSuspense.tsx
Normal file
14
packages/webapp/src/components/Drawer/DrawerSuspense.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
// @ts-nocheck
|
||||
import React, { Suspense } from 'react';
|
||||
import { DrawerLoading } from '@/components';
|
||||
|
||||
/**
|
||||
* Loading content.
|
||||
*/
|
||||
function LoadingContent() {
|
||||
return <DrawerLoading loading={true} />;
|
||||
}
|
||||
|
||||
export function DrawerSuspense({ children }) {
|
||||
return <Suspense fallback={<LoadingContent />}>{children}</Suspense>;
|
||||
}
|
||||
Reference in New Issue
Block a user