mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
29 lines
655 B
JavaScript
29 lines
655 B
JavaScript
import React from 'react';
|
|
import { Drawer, DrawerSuspense } from 'components';
|
|
import withDrawers from 'containers/Drawer/withDrawers';
|
|
|
|
import { compose } from 'utils';
|
|
|
|
const InvoiceDetailDrawerContent = React.lazy(() =>
|
|
import('./InvoiceDetailDrawerContent'),
|
|
);
|
|
|
|
/**
|
|
* Invoice Detail drawer.
|
|
*/
|
|
function InvoiceDetailDrawer({
|
|
name,
|
|
// #withDrawer
|
|
isOpen,
|
|
payload: { invoiceId },
|
|
}) {
|
|
return (
|
|
<Drawer isOpen={isOpen} name={name} size={'750px'}>
|
|
<DrawerSuspense>
|
|
<InvoiceDetailDrawerContent invoice={invoiceId} />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
export default compose(withDrawers())(InvoiceDetailDrawer);
|