mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
35 lines
781 B
TypeScript
35 lines
781 B
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
import { Dialog, DialogSuspense } from '@/components';
|
|
import withDialogRedux from '@/components/DialogReduxConnect';
|
|
import { compose } from '@/utils';
|
|
|
|
const ReceiptMailDialogBody = React.lazy(
|
|
() => import('./ReceiptMailDialogBody'),
|
|
);
|
|
|
|
/**
|
|
* Receipt mail dialog.
|
|
*/
|
|
function ReceiptMailDialog({
|
|
dialogName,
|
|
payload: { receiptId = null },
|
|
isOpen,
|
|
}) {
|
|
return (
|
|
<Dialog
|
|
name={dialogName}
|
|
title={'Receipt Mail'}
|
|
isOpen={isOpen}
|
|
canEscapeJeyClose={true}
|
|
autoFocus={true}
|
|
style={{ width: 600 }}
|
|
>
|
|
<DialogSuspense>
|
|
<ReceiptMailDialogBody receiptId={receiptId} />
|
|
</DialogSuspense>
|
|
</Dialog>
|
|
);
|
|
}
|
|
export default compose(withDialogRedux())(ReceiptMailDialog);
|