mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: add View detail.
This commit is contained in:
33
src/containers/Drawers/CreditNoteDetailDrawer/index.js
Normal file
33
src/containers/Drawers/CreditNoteDetailDrawer/index.js
Normal file
@@ -0,0 +1,33 @@
|
||||
import React from 'react';
|
||||
import { Drawer, DrawerSuspense } from 'components';
|
||||
import withDrawers from 'containers/Drawer/withDrawers';
|
||||
|
||||
import { compose } from 'utils';
|
||||
|
||||
const CreditNoteDetailDrawerContent = React.lazy(() =>
|
||||
import('./CreditNoteDetailDrawerContent'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Credit note detail drawer.
|
||||
*/
|
||||
function CreditNoteDetailDrawer({
|
||||
name,
|
||||
// #withDrawer
|
||||
isOpen,
|
||||
payload: { creditNoteId },
|
||||
}) {
|
||||
return (
|
||||
<Drawer
|
||||
isOpen={isOpen}
|
||||
name={name}
|
||||
style={{ minWidth: '700px', maxWidth: '900px' }}
|
||||
size={'65%'}
|
||||
>
|
||||
<DrawerSuspense>
|
||||
<CreditNoteDetailDrawerContent creditNoteId={creditNoteId} />
|
||||
</DrawerSuspense>
|
||||
</Drawer>
|
||||
);
|
||||
}
|
||||
export default compose(withDrawers())(CreditNoteDetailDrawer);
|
||||
Reference in New Issue
Block a user