mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat: refactoring alerts.
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
import React from 'react';
|
||||
import ExpenseDeleteAlert from 'containers/Alerts/Expenses/ExpenseDeleteAlert';
|
||||
import ExpensePublishAlert from 'containers/Alerts/Expenses/ExpensePublishAlert';
|
||||
|
||||
const ExpenseDeleteAlert = React.lazy(() =>
|
||||
import('../Alerts/Expenses/ExpenseDeleteAlert'),
|
||||
);
|
||||
const ExpensePublishAlert = React.lazy(() =>
|
||||
import('../Alerts/Expenses/ExpensePublishAlert'),
|
||||
);
|
||||
|
||||
/**
|
||||
* Accounts alert.
|
||||
*/
|
||||
export default function ExpensesAlerts({}) {
|
||||
return (
|
||||
<div class="expenses-alerts">
|
||||
<ExpenseDeleteAlert name={'expense-delete'} />
|
||||
<ExpensePublishAlert name={'expense-publish'} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
export default [
|
||||
{ name: 'expense-delete', component: ExpenseDeleteAlert },
|
||||
{ name: 'expense-publish', component: ExpensePublishAlert },
|
||||
];
|
||||
|
||||
@@ -7,7 +7,6 @@ import { DashboardContentTable, DashboardPageContent } from 'components';
|
||||
import ExpenseActionsBar from './ExpenseActionsBar';
|
||||
import ExpenseViewTabs from './ExpenseViewTabs';
|
||||
import ExpenseDataTable from './ExpenseDataTable';
|
||||
import ExpensesAlerts from '../ExpensesAlerts';
|
||||
|
||||
import withExpenses from './withExpenses';
|
||||
import withExpensesActions from './withExpensesActions';
|
||||
@@ -45,8 +44,6 @@ function ExpensesList({
|
||||
<ExpenseViewTabs />
|
||||
<ExpenseDataTable />
|
||||
</DashboardPageContent>
|
||||
|
||||
<ExpensesAlerts />
|
||||
</ExpensesListProvider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user