Merge pull request #930 from getmaxun/table-pag

feat: !show rows per page for runs & robots
This commit is contained in:
Karishma Shukla
2026-01-04 18:09:02 +05:30
committed by GitHub
2 changed files with 7 additions and 10 deletions

View File

@@ -618,13 +618,12 @@ export const RecordingsTable = ({
</TableContainer>
<TablePagination
rowsPerPageOptions={[10, 25, 50, 100]}
component="div"
count={filteredRows.length}
rowsPerPage={rowsPerPage}
page={page}
rowsPerPage={rowsPerPage}
onPageChange={handleChangePage}
onRowsPerPageChange={handleChangeRowsPerPage}
rowsPerPageOptions={[]}
/>
</>
)}

View File

@@ -630,11 +630,10 @@ export const RunsTable: React.FC<RunsTableProps> = ({
count={data.length}
rowsPerPage={getPaginationState(robotMetaId).rowsPerPage}
page={getPaginationState(robotMetaId).page}
onPageChange={(_, newPage) => handleChangePage(robotMetaId, newPage)}
onRowsPerPageChange={(event) =>
handleChangeRowsPerPage(robotMetaId, +event.target.value)
onPageChange={(_, newPage) =>
handleChangePage(robotMetaId, newPage)
}
rowsPerPageOptions={[10, 25, 50, 100]}
rowsPerPageOptions={[]}
/>
</AccordionDetails>
</Accordion>
@@ -647,11 +646,10 @@ export const RunsTable: React.FC<RunsTableProps> = ({
page={accordionPage}
rowsPerPage={accordionsPerPage}
onPageChange={handleAccordionPageChange}
onRowsPerPageChange={handleAccordionsPerPageChange}
rowsPerPageOptions={[10, 25, 50, 100]}
rowsPerPageOptions={[]}
/>
</>
)}
</React.Fragment>
);
};
};