fix: dashboard sidebar expanding.

This commit is contained in:
a.bouhuolia
2021-04-19 18:34:02 +02:00
parent c6aca4ecfa
commit f29c1b6cec
27 changed files with 178 additions and 230 deletions

View File

@@ -1,4 +1,6 @@
import React from 'react';
import 'style/pages/ItemsCategories/List.scss';
import { DashboardContentTable, DashboardPageContent } from 'components';
import ItemsCategoriesAlerts from './ItemsCategoriesAlerts';
@@ -11,7 +13,7 @@ import ItemCategoriesTable from './ItemCategoriesTable';
*/
export default function ItemCategoryList() {
return (
<ItemsCategoriesProvider query={{}}>
<ItemsCategoriesProvider>
<ItemsCategoryActionsBar />
<DashboardPageContent>

View File

@@ -25,7 +25,7 @@ function ItemsCategoriesProvider({ query, ...props }) {
};
return (
<DashboardInsider name={'item-category-list'}>
<DashboardInsider name={'items-categories-list'}>
<ItemsCategoriesContext.Provider value={state} {...props} />
</DashboardInsider>
);

View File

@@ -81,14 +81,7 @@ export function useItemsCategoriesTableColumns() {
accessor: 'description',
className: 'description',
width: 220,
},
{
id: 'actions',
Header: '',
Cell: TableActionsCell,
className: 'actions',
width: 50,
},
}
],
[formatMessage],
);