mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
38 lines
800 B
JavaScript
38 lines
800 B
JavaScript
import React from 'react';
|
|
import { Drawer, DrawerSuspense } from 'components';
|
|
import withDrawers from 'containers/Drawer/withDrawers';
|
|
|
|
import { compose } from 'utils';
|
|
|
|
const PaymentReceiveDetailContent = React.lazy(() =>
|
|
import('./PaymentReceiveDetailContent'),
|
|
);
|
|
|
|
/**
|
|
* Payment receive detail drawer
|
|
*/
|
|
function PaymentReceiveDetailDrawer({
|
|
name,
|
|
// #withDrawer
|
|
isOpen,
|
|
payload: { paymentReceiveId },
|
|
}) {
|
|
return (
|
|
<Drawer
|
|
isOpen={isOpen}
|
|
name={name}
|
|
size={'65%'}
|
|
style={{
|
|
minWidth: '700px',
|
|
maxWidth: '900px',
|
|
}}
|
|
>
|
|
<DrawerSuspense>
|
|
<PaymentReceiveDetailContent paymentReceive={paymentReceiveId} />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export default compose(withDrawers())(PaymentReceiveDetailDrawer);
|