mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
38 lines
768 B
JavaScript
38 lines
768 B
JavaScript
import React from 'react';
|
|
import { Drawer, DrawerSuspense } from 'components';
|
|
import withDrawers from 'containers/Drawer/withDrawers';
|
|
|
|
import { compose } from 'utils';
|
|
|
|
const QuickCretaeItemDrawerContent = React.lazy(() =>
|
|
import('./QuickCreateItemDrawerContent'),
|
|
);
|
|
|
|
/**
|
|
* Quick create item.
|
|
*/
|
|
function QuickCreateItemDrawer({
|
|
// #ownProps
|
|
name,
|
|
|
|
// #withDrawer
|
|
isOpen,
|
|
payload,
|
|
}) {
|
|
return (
|
|
<Drawer
|
|
isOpen={isOpen}
|
|
name={name}
|
|
style={{ minWidth: '800px', maxWidth: '1000px' }}
|
|
size={'72%'}
|
|
payload={payload}
|
|
>
|
|
<DrawerSuspense>
|
|
<QuickCretaeItemDrawerContent itemName={payload.name} />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export default compose(withDrawers())(QuickCreateItemDrawer);
|