mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
TypeScript
// @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);
|