mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
38 lines
784 B
TypeScript
38 lines
784 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import * as R from 'ramda';
|
|
|
|
import { Drawer, DrawerSuspense } from '@/components';
|
|
import withDrawers from '@/containers/Drawer/withDrawers';
|
|
|
|
const QuickWriteVendorDrawerContent = React.lazy(() =>
|
|
import('./QuickWriteVendorDrawerContent'),
|
|
);
|
|
|
|
/**
|
|
* Quick Write vendor.
|
|
*/
|
|
function QuickWriteVendorDrawer({
|
|
name,
|
|
|
|
// #withDrawer
|
|
isOpen,
|
|
payload,
|
|
}) {
|
|
return (
|
|
<Drawer
|
|
isOpen={isOpen}
|
|
name={name}
|
|
style={{ minWidth: '700px', maxWidth: '900px' }}
|
|
size={'80%'}
|
|
payload={payload}
|
|
>
|
|
<DrawerSuspense>
|
|
<QuickWriteVendorDrawerContent displayName={payload.displayName} />
|
|
</DrawerSuspense>
|
|
</Drawer>
|
|
);
|
|
}
|
|
|
|
export default R.compose(withDrawers())(QuickWriteVendorDrawer);
|