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