mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat: send invoice mail receipt drawer
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import * as R from 'ramda';
|
||||
import { Drawer, DrawerSuspense } from '@/components';
|
||||
import { InvoiceSendMailContent } from './InvoiceSendMailContent';
|
||||
import withDrawers from '@/containers/Drawer/withDrawers';
|
||||
|
||||
interface InvoiceSendMailDrawerProps {
|
||||
name: string;
|
||||
isOpen?: boolean;
|
||||
payload?: any;
|
||||
}
|
||||
|
||||
function InvoiceSendMailDrawerRoot({
|
||||
name,
|
||||
|
||||
// #withDrawer
|
||||
isOpen,
|
||||
payload,
|
||||
}: InvoiceSendMailDrawerProps) {
|
||||
return (
|
||||
<Drawer isOpen={isOpen} name={name} size={'100%'} payload={payload}>
|
||||
<DrawerSuspense>
|
||||
<InvoiceSendMailContent />
|
||||
</DrawerSuspense>
|
||||
</Drawer>
|
||||
);
|
||||
}
|
||||
|
||||
export const InvoiceSendMailDrawer = R.compose(withDrawers())(
|
||||
InvoiceSendMailDrawerRoot,
|
||||
);
|
||||
Reference in New Issue
Block a user