mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 03:40:31 +00:00
36 lines
921 B
JavaScript
36 lines
921 B
JavaScript
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 NotifyReceiptViaSMSDialogContent = React.lazy(() =>
|
|
import('./NotifyReceiptViaSMSDialogContent'),
|
|
);
|
|
|
|
function NotifyReceiptViaSMSDialog({
|
|
dialogName,
|
|
payload: { receiptId },
|
|
isOpen,
|
|
}) {
|
|
return (
|
|
<Dialog
|
|
name={dialogName}
|
|
title={<T id={'notify_via_sms.dialog.notify_via_sms'} />}
|
|
isOpen={isOpen}
|
|
canEscapeJeyClose={true}
|
|
autoFocus={true}
|
|
className={'dialog--notify-vis-sms'}
|
|
>
|
|
<DialogSuspense>
|
|
<NotifyReceiptViaSMSDialogContent
|
|
dialogName={dialogName}
|
|
receipt={receiptId}
|
|
/>
|
|
</DialogSuspense>
|
|
</Dialog>
|
|
);
|
|
}
|
|
|
|
export default compose(withDialogRedux())(NotifyReceiptViaSMSDialog);
|