chore: increase the pagination
This commit is contained in:
@@ -21,6 +21,8 @@ export default function Categories() {
|
||||
const [rowToDelete, setRowToDelete] = useState(null);
|
||||
const hasLoaded = useRef(false);
|
||||
|
||||
const pageSize = 100; // Número de filas por página
|
||||
|
||||
useEffect(() => {
|
||||
if (!hasLoaded.current) {
|
||||
loadData();
|
||||
@@ -205,8 +207,8 @@ export default function Categories() {
|
||||
<DataGrid
|
||||
rows={filteredRows}
|
||||
columns={columns}
|
||||
initialState={{ pagination: { paginationModel: { pageSize: 10 } } }}
|
||||
pageSizeOptions={[10]}
|
||||
initialState={{ pagination: { paginationModel: { pageSize: pageSize } } }}
|
||||
pageSizeOptions={[pageSize]}
|
||||
disableColumnMenu
|
||||
getRowId={(r) => r?._id || r?.id}
|
||||
sx={{
|
||||
|
||||
Reference in New Issue
Block a user