mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
38
src/containers/Dialogs/QuickPaymentMadeFormDialog/index.js
Normal file
38
src/containers/Dialogs/QuickPaymentMadeFormDialog/index.js
Normal file
@@ -0,0 +1,38 @@
|
||||
import React, { lazy } from 'react';
|
||||
import { FormattedMessage as T } from 'components';
|
||||
import { Dialog, DialogSuspense } from 'components';
|
||||
import withDialogRedux from 'components/DialogReduxConnect';
|
||||
import { compose } from 'redux';
|
||||
|
||||
const QuickPaymentMadeFormDialogContent = lazy(() =>
|
||||
import('./QuickPaymentMadeFormDialogContent'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Quick payment made form dialog.
|
||||
*/
|
||||
function QuickPaymentMadeFormDialog({
|
||||
dialogName,
|
||||
payload = { billId: null },
|
||||
isOpen,
|
||||
}) {
|
||||
return (
|
||||
<Dialog
|
||||
name={dialogName}
|
||||
title={<T id={'quick_made_payment'} />}
|
||||
isOpen={isOpen}
|
||||
canEscapeJeyClose={true}
|
||||
autoFocus={true}
|
||||
className={'dialog--quick-payment-receive'}
|
||||
>
|
||||
<DialogSuspense>
|
||||
<QuickPaymentMadeFormDialogContent
|
||||
bill={payload.billId}
|
||||
dialogName={dialogName}
|
||||
/>
|
||||
</DialogSuspense>
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
|
||||
export default compose(withDialogRedux())(QuickPaymentMadeFormDialog);
|
||||
Reference in New Issue
Block a user