mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
30
src/containers/Drawers/VendorDetailsDrawer/index.js
Normal file
30
src/containers/Drawers/VendorDetailsDrawer/index.js
Normal file
@@ -0,0 +1,30 @@
|
||||
import React from 'react';
|
||||
import { Drawer, DrawerSuspense } from 'components';
|
||||
import withDrawers from 'containers/Drawer/withDrawers';
|
||||
|
||||
import { compose } from 'utils';
|
||||
|
||||
const VendorDetailsDrawerContent = React.lazy(() =>
|
||||
import('./VendorDetailsDrawerContent'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Vendor details drawer.
|
||||
*/
|
||||
function VendorDetailsDrawer({
|
||||
name,
|
||||
|
||||
// #withDrawer
|
||||
isOpen,
|
||||
payload: { vendorId },
|
||||
}) {
|
||||
return (
|
||||
<Drawer isOpen={isOpen} name={name} size={'750px'}>
|
||||
<DrawerSuspense>
|
||||
<VendorDetailsDrawerContent vendorId={vendorId} />
|
||||
</DrawerSuspense>
|
||||
</Drawer>
|
||||
);
|
||||
}
|
||||
|
||||
export default compose(withDrawers())(VendorDetailsDrawer);
|
||||
Reference in New Issue
Block a user