From f96fe1164b359354b533f6e6aa2858e6a7bc4248 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Thu, 8 Dec 2022 00:55:15 +0200 Subject: [PATCH] remove unused grid --- .../components/ResourcesContainer.js | 80 +++++++++---------- 1 file changed, 38 insertions(+), 42 deletions(-) diff --git a/src/features/resources/components/ResourcesContainer.js b/src/features/resources/components/ResourcesContainer.js index 9d563b1..d64c605 100644 --- a/src/features/resources/components/ResourcesContainer.js +++ b/src/features/resources/components/ResourcesContainer.js @@ -174,48 +174,44 @@ const ResourcesContainer = () => { {state.loaded === false ? ( ) : ( - - - { - setFilters((prev) => ({ ...prev, page: currentPage + 1 })); - }, - onChangeRowsPerPage: (numberOfRows) => { - setFilters((prev) => ({ ...prev, pageSize: numberOfRows })); - }, - onColumnSortChange: (changedColumn, direction) => - setFilters((prev) => ({ - ...prev, - sortBy: changedColumn, - sortDirection: direction - })), - onFilterChange: handleFilterChange, - onSearchChange: (text) => - setFilters((prev) => ({ ...prev, fullTextSearch: text })), - customSort: (data) => data, - customSearch: () => true, - setFilterChipProps: (_colIndex, _colName, _data) => { - return { - color: "primary", - variant: "outlined" - }; - } - }} - /> - - + { + setFilters((prev) => ({ ...prev, page: currentPage + 1 })); + }, + onChangeRowsPerPage: (numberOfRows) => { + setFilters((prev) => ({ ...prev, pageSize: numberOfRows })); + }, + onColumnSortChange: (changedColumn, direction) => + setFilters((prev) => ({ + ...prev, + sortBy: changedColumn, + sortDirection: direction + })), + onFilterChange: handleFilterChange, + onSearchChange: (text) => + setFilters((prev) => ({ ...prev, fullTextSearch: text })), + customSort: (data) => data, + customSearch: () => true, + setFilterChipProps: (_colIndex, _colName, _data) => { + return { + color: "primary", + variant: "outlined" + }; + } + }} + /> )} );