mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
34
src/containers/Drawers/PaymentMadeDetailDrawer/index.js
Normal file
34
src/containers/Drawers/PaymentMadeDetailDrawer/index.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import React from 'react';
|
||||
import { Drawer, DrawerSuspense } from 'components';
|
||||
import withDrawers from 'containers/Drawer/withDrawers';
|
||||
|
||||
import { compose } from 'utils';
|
||||
|
||||
const PaymentMadeDetailContent = React.lazy(() =>
|
||||
import('./PaymentMadeDetailContent'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Payment made detail drawer.
|
||||
*/
|
||||
function PaymentMadeDetailDrawer({
|
||||
name,
|
||||
// #withDrawer
|
||||
isOpen,
|
||||
payload: { paymentMadeId },
|
||||
}) {
|
||||
return (
|
||||
<Drawer
|
||||
isOpen={isOpen}
|
||||
name={name}
|
||||
size={'65%'}
|
||||
style={{ minWidth: '700px', maxWidth: '900px' }}
|
||||
>
|
||||
<DrawerSuspense>
|
||||
<PaymentMadeDetailContent paymentMadeId={paymentMadeId} />
|
||||
</DrawerSuspense>
|
||||
</Drawer>
|
||||
);
|
||||
}
|
||||
|
||||
export default compose(withDrawers())(PaymentMadeDetailDrawer);
|
||||
Reference in New Issue
Block a user