mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00: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,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -9,7 +9,6 @@ import { AccountTransactionsProvider } from './AccountTransactionsProvider';
|
||||
import AccountTransactionsActionsBar from './AccountTransactionsActionsBar';
|
||||
import AccountTransactionsDataTable from './AccountTransactionsDataTable';
|
||||
import { AccountTransactionsDetailsBar } from './AccountTransactionsDetailsBar';
|
||||
import AccountTransactionsAlerts from './AccountTransactionsAlerts';
|
||||
import { AccountTransactionsProgressBar } from './components';
|
||||
|
||||
/**
|
||||
@@ -27,7 +26,6 @@ function AccountTransactionsList() {
|
||||
<AccountTransactionsDataTable />
|
||||
</CashflowTransactionsTableCard>
|
||||
</DashboardPageContent>
|
||||
<AccountTransactionsAlerts />
|
||||
</AccountTransactionsProvider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user