mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
36 lines
755 B
TypeScript
36 lines
755 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import { Drawer, DrawerSuspense } from '@/components';
|
|
import withDrawers from '@/containers/Drawer/withDrawers';
|
|
|
|
import { compose } from '@/utils';
|
|
|
|
const ReceiptDetailDrawerContent = React.lazy(() =>
|
|
import('./ReceiptDetailDrawerContent'),
|
|
);
|
|
|
|
/**
|
|
* Receipt Detail drawer.
|
|
*/
|
|
function ReceiptDetailDrawer({
|
|
name,
|
|
// #withDrawer
|
|
isOpen,
|
|
payload: { receiptId },
|
|
}) {
|
|
return (
|
|
<Drawer
|
|
isOpen={isOpen}
|
|
name={name}
|
|
style={{ minWidth: '700px', maxWidth: '900px' }}
|
|
size={'65%'}
|
|
>
|
|
<DrawerSuspense>
|
|
<ReceiptDetailDrawerContent receiptId={receiptId} />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export default compose(withDrawers())(ReceiptDetailDrawer);
|