mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: refactoring alerts.
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
import React from 'react';
|
||||
import ReceiptDeleteAlert from 'containers/Alerts/Receipts/ReceiptDeleteAlert';
|
||||
import ReceiptCloseAlert from 'containers/Alerts/Receipts/ReceiptCloseAlert';
|
||||
|
||||
const ReceiptDeleteAlert = React.lazy(() =>
|
||||
import('../../Alerts/Receipts/ReceiptDeleteAlert'),
|
||||
);
|
||||
const ReceiptCloseAlert = React.lazy(() =>
|
||||
import('../../Alerts/Receipts/ReceiptCloseAlert'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Receipts alerts.
|
||||
*/
|
||||
export default function ReceiptsAlerts() {
|
||||
return (
|
||||
<div>
|
||||
<ReceiptDeleteAlert name={'receipt-delete'} />
|
||||
<ReceiptCloseAlert name={'receipt-close'} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
export default [
|
||||
{ name: 'receipt-delete', component: ReceiptDeleteAlert },
|
||||
{ name: 'receipt-close', component: ReceiptCloseAlert },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user