mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat: drawer.
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
import React, { Suspense } from 'react';
|
||||
import { Spinner } from '@blueprintjs/core';
|
||||
import { Spinner, Classes } from '@blueprintjs/core';
|
||||
|
||||
function LoadingContent() {
|
||||
return (
|
||||
<div className={Classes.DRAWER_BODY}>
|
||||
<Spinner size={30} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default function DrawerSuspense({ children }) {
|
||||
return <Suspense fallback={<Spinner size={30} />}>{children}</Suspense>;
|
||||
return <Suspense fallback={<LoadingContent />}>{children}</Suspense>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user