feat: refactoring alerts.

This commit is contained in:
elforjani13
2021-10-31 13:13:38 +02:00
parent 60f45f281a
commit ea466404ec
34 changed files with 264 additions and 227 deletions

View File

@@ -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>
);
}

View File

@@ -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 },
];