mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
refactoring: drawers suspense.
This commit is contained in:
6
client/src/components/Drawer/DrawerSuspense.js
Normal file
6
client/src/components/Drawer/DrawerSuspense.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import React, { Suspense } from 'react';
|
||||
import { Spinner } from '@blueprintjs/core';
|
||||
|
||||
export default function DrawerSuspense({ children }) {
|
||||
return <Suspense fallback={<Spinner size={30} />}>{children}</Suspense>;
|
||||
}
|
||||
Reference in New Issue
Block a user