mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
feat: refactoring alerts.
This commit is contained in:
@@ -1,24 +1,15 @@
|
||||
import React from 'react';
|
||||
|
||||
import AccountDeleteTransactionAlert from '../../Alerts/CashFlow/AccountDeleteTransactionAlert';
|
||||
import ReceiptDeleteAlert from '../../Alerts/Receipts/ReceiptDeleteAlert';
|
||||
import JournalDeleteAlert from '../../Alerts/ManualJournals/JournalDeleteAlert';
|
||||
import ExpenseDeleteAlert from '../../Alerts/Expenses/ExpenseDeleteAlert';
|
||||
import PaymentMadeDeleteAlert from '../../Alerts/PaymentMades/PaymentMadeDeleteAlert';
|
||||
import PaymentReceiveDeleteAlert from '../../Alerts/PaymentReceives/PaymentReceiveDeleteAlert';
|
||||
const AccountDeleteTransactionAlert = React.lazy(() =>
|
||||
import('../../Alerts/CashFlow/AccountDeleteTransactionAlert'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Account transaction alert.
|
||||
*/
|
||||
export default function AccountTransactionsAlerts() {
|
||||
return (
|
||||
<div>
|
||||
<AccountDeleteTransactionAlert name={'account-transaction-delete'} />
|
||||
<ReceiptDeleteAlert name={'receipt-delete'} />
|
||||
<JournalDeleteAlert name={'journal-delete'} />
|
||||
<ExpenseDeleteAlert name={"expense-delete"} />
|
||||
<PaymentMadeDeleteAlert name={'payment-made-delete'} />
|
||||
<PaymentReceiveDeleteAlert name={'payment-receive-delete'} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
export default [
|
||||
{
|
||||
name: 'account-transaction-delete',
|
||||
component: AccountDeleteTransactionAlert,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user