mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
re-structure to monorepo.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
// @ts-nocheck
|
||||
import React, { lazy } from 'react';
|
||||
|
||||
import { Dialog, DialogSuspense, FormattedMessage as T } from '@/components';
|
||||
import withDialogRedux from '@/components/DialogReduxConnect';
|
||||
import { compose } from '@/utils';
|
||||
|
||||
const QuickPaymentReceiveFormDialogContent = lazy(
|
||||
() => import('./QuickPaymentReceiveFormDialogContent'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Quick payment receive form dialog.
|
||||
*/
|
||||
function QuickPaymentReceiveFormDialog({
|
||||
dialogName,
|
||||
payload = { invoiceId: null },
|
||||
isOpen,
|
||||
}) {
|
||||
return (
|
||||
<Dialog
|
||||
name={dialogName}
|
||||
title={<T id={'quick_receive_payment'} />}
|
||||
isOpen={isOpen}
|
||||
canEscapeJeyClose={true}
|
||||
autoFocus={true}
|
||||
className={'dialog--quick-payment-receive'}
|
||||
>
|
||||
<DialogSuspense>
|
||||
<QuickPaymentReceiveFormDialogContent
|
||||
dialogName={dialogName}
|
||||
invoice={payload.invoiceId}
|
||||
/>
|
||||
</DialogSuspense>
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
|
||||
export default compose(withDialogRedux())(QuickPaymentReceiveFormDialog);
|
||||
Reference in New Issue
Block a user