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:
@@ -5,7 +5,6 @@ import 'style/pages/ItemsCategories/List.scss';
|
||||
|
||||
import { DashboardContentTable, DashboardPageContent } from 'components';
|
||||
|
||||
import ItemsCategoriesAlerts from './ItemsCategoriesAlerts';
|
||||
import ItemsCategoryActionsBar from './ItemsCategoryActionsBar';
|
||||
import { ItemsCategoriesProvider } from './ItemsCategoriesProvider';
|
||||
import ItemCategoriesTable from './ItemCategoriesTable';
|
||||
@@ -28,7 +27,6 @@ function ItemCategoryList({
|
||||
<ItemCategoriesTable />
|
||||
</DashboardContentTable>
|
||||
</DashboardPageContent>
|
||||
<ItemsCategoriesAlerts />
|
||||
</ItemsCategoriesProvider>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
import React from 'react';
|
||||
import ItemCategoryDeleteAlert from 'containers/Alerts/Items/ItemCategoryDeleteAlert';
|
||||
// import ItemCategoryBulkDeleteAlert from 'containers/Alerts/Items/ItemCategoryBulkDeleteAlert';
|
||||
|
||||
export default function ItemsCategoriesAlerts() {
|
||||
return (
|
||||
<div class="items-categories-alerts">
|
||||
<ItemCategoryDeleteAlert name={'item-category-delete'} />
|
||||
{/* <ItemCategoryBulkDeleteAlert name={'item-categories-bulk-delete'} /> */}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
const ItemCategoryDeleteAlert = React.lazy(() =>
|
||||
import('../Alerts/Items/ItemCategoryDeleteAlert'),
|
||||
);
|
||||
|
||||
export default [
|
||||
{ name: 'item-category-delete', component: ItemCategoryDeleteAlert },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user