re-structure to monorepo.

This commit is contained in:
a.bouhuolia
2023-02-03 01:02:31 +02:00
parent 8242ec64ba
commit 7a0a13f9d5
10400 changed files with 46966 additions and 17223 deletions

View File

@@ -0,0 +1,41 @@
// @ts-nocheck
import React from 'react';
import { FormattedMessage as T } from '@/components';
import { Dialog, DialogSuspense } from '@/components';
import withDialogRedux from '@/components/DialogReduxConnect';
import { compose } from '@/utils';
const CustomerOpeningBalanceDialogContent = React.lazy(() =>
import('./CustomerOpeningBalanceDialogContent'),
);
/**
* Customer opening balance dialog.
* @returns
*/
function CustomerOpeningBalanceDialog({
dialogName,
payload: { customerId },
isOpen,
}) {
return (
<Dialog
name={dialogName}
title={<T id={'customer_opening_balance.label'} />}
isOpen={isOpen}
canEscapeJeyClose={true}
autoFocus={true}
className={'dialog--customer-opening-balance'}
>
<DialogSuspense>
<CustomerOpeningBalanceDialogContent
customerId={customerId}
dialogName={dialogName}
/>
</DialogSuspense>
</Dialog>
);
}
export default compose(withDialogRedux())(CustomerOpeningBalanceDialog);