remove unused grid
parent
e3fad73d40
commit
f96fe1164b
|
@ -174,48 +174,44 @@ const ResourcesContainer = () => {
|
|||
{state.loaded === false ? (
|
||||
<CircularProgress size={26} />
|
||||
) : (
|
||||
<Grid container spacing={4}>
|
||||
<Grid item xs={12}>
|
||||
<MUIDataTable
|
||||
title="Resources"
|
||||
columns={columns}
|
||||
data={state.values ?? []}
|
||||
options={{
|
||||
filterType: "textField",
|
||||
expandableRows: false,
|
||||
print: false,
|
||||
selectableRows: "none",
|
||||
rowsPerPage: state.pageSize,
|
||||
rowsPerPageOptions: __ROWS_PER_PAGE_OPTIONS,
|
||||
count: state.totalCount,
|
||||
customSearchRender: debounceSearchRender(500),
|
||||
onChangePage: (currentPage) => {
|
||||
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"
|
||||
};
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<MUIDataTable
|
||||
title="Resources"
|
||||
columns={columns}
|
||||
data={state.values ?? []}
|
||||
options={{
|
||||
filterType: "textField",
|
||||
expandableRows: false,
|
||||
print: false,
|
||||
selectableRows: "none",
|
||||
rowsPerPage: state.pageSize,
|
||||
rowsPerPageOptions: __ROWS_PER_PAGE_OPTIONS,
|
||||
count: state.totalCount,
|
||||
customSearchRender: debounceSearchRender(500),
|
||||
onChangePage: (currentPage) => {
|
||||
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"
|
||||
};
|
||||
}
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue