mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
re-structure to monorepo.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
import { Dialog, DialogSuspense, FormattedMessage as T } from '@/components';
|
||||
|
||||
import withDialogRedux from '@/components/DialogReduxConnect';
|
||||
import { compose } from '@/utils';
|
||||
|
||||
const RefundCreditNoteDialogContent = React.lazy(() =>
|
||||
import('./RefundCreditNoteDialogContent'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Refund credit note dialog.
|
||||
*/
|
||||
function RefundCreditNoteDialog({
|
||||
dialogName,
|
||||
payload: { creditNoteId },
|
||||
isOpen,
|
||||
}) {
|
||||
return (
|
||||
<Dialog
|
||||
name={dialogName}
|
||||
title={<T id={'refund_credit_note.dialog.label'} />}
|
||||
isOpen={isOpen}
|
||||
canEscapeJeyClose={true}
|
||||
autoFocus={true}
|
||||
className={'dialog--refund-credit-note'}
|
||||
style={{ width: '450px' }}
|
||||
>
|
||||
<DialogSuspense>
|
||||
<RefundCreditNoteDialogContent
|
||||
dialogName={dialogName}
|
||||
creditNoteId={creditNoteId}
|
||||
/>
|
||||
</DialogSuspense>
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
export default compose(withDialogRedux())(RefundCreditNoteDialog);
|
||||
Reference in New Issue
Block a user