Skip to content

Commit

Permalink
Ref to top on page change
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam3107 committed Nov 14, 2023
1 parent 76f6b80 commit 4e8eef6
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const CustomTableOutput = ({
>
<Table sx={{ maxWidth: "100%" }} style={tableStyle} >
<TableHead>
<TableRow>
<TableRow id="CustomTableOutputTableRow">
{setNumSelected && (
<TableCell padding="checkbox">
<Checkbox
Expand Down Expand Up @@ -148,16 +148,17 @@ const CustomTableOutput = ({
</TableBody>
</Table>
</TableContainer>

<TablePagination
rowsPerPageOptions={[5, 10, 25, 50, 100]}
component="div"
count={data.length}
rowsPerPage={rowsPerPage}
page={page}
onPageChange={(e, p) => setPage(p)}
onRowsPerPageChange={handleChangeRowsPerPage}
/>
<a href="#CustomTableOutputTableRow">
<TablePagination
rowsPerPageOptions={[5, 10, 25, 50, 100]}
component="div"
count={data.length}
rowsPerPage={rowsPerPage}
page={page}
onPageChange={(e, p) => setPage(p)}
onRowsPerPageChange={handleChangeRowsPerPage}
/>
</a>
</Box>
)
else
Expand Down

0 comments on commit 4e8eef6

Please sign in to comment.