mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
re-structure to monorepo.
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user