@@ -41,22 +41,22 @@ const useStyles1 = makeStyles(theme => ({
41
41
function TablePaginationActions ( props ) {
42
42
const classes = useStyles1 ( ) ;
43
43
const theme = useTheme ( ) ;
44
- const { count, page, rowsPerPage, onChangePage } = props ;
44
+ const { count, page, rowsPerPage, onPageChange } = props ;
45
45
46
46
function handleFirstPageButtonClick ( event ) {
47
- onChangePage ( event , 0 ) ;
47
+ onPageChange ( event , 0 ) ;
48
48
}
49
49
50
50
function handleBackButtonClick ( event ) {
51
- onChangePage ( event , page - 1 ) ;
51
+ onPageChange ( event , page - 1 ) ;
52
52
}
53
53
54
54
function handleNextButtonClick ( event ) {
55
- onChangePage ( event , page + 1 ) ;
55
+ onPageChange ( event , page + 1 ) ;
56
56
}
57
57
58
58
function handleLastPageButtonClick ( event ) {
59
- onChangePage ( event , Math . max ( 0 , Math . ceil ( count / rowsPerPage ) - 1 ) ) ;
59
+ onPageChange ( event , Math . max ( 0 , Math . ceil ( count / rowsPerPage ) - 1 ) ) ;
60
60
}
61
61
62
62
return (
@@ -577,20 +577,22 @@ export default function EnhancedTable() {
577
577
) }
578
578
</ TableBody >
579
579
< TableFooter >
580
- < TablePagination
581
- rowsPerPageOptions = { [ 5 , 10 , 25 ] }
582
- colSpan = { 3 }
583
- count = { rows2 . length }
584
- rowsPerPage = { rowsPerPage2 }
585
- page = { page2 }
586
- SelectProps = { {
587
- inputProps : { "aria-label" : "rows per page" } ,
588
- native : true
589
- } }
590
- onPageChange = { handleChangePage2 }
591
- onRowsPerPageChange = { handleChangeRowsPerPage2 }
592
- ActionsComponent = { TablePaginationActions }
593
- />
580
+ < TableRow >
581
+ < TablePagination
582
+ rowsPerPageOptions = { [ 5 , 10 , 25 ] }
583
+ colSpan = { 3 }
584
+ count = { rows2 . length }
585
+ rowsPerPage = { rowsPerPage2 }
586
+ page = { page2 }
587
+ SelectProps = { {
588
+ inputProps : { "aria-label" : "rows per page" } ,
589
+ native : true
590
+ } }
591
+ onPageChange = { handleChangePage2 }
592
+ onRowsPerPageChange = { handleChangeRowsPerPage2 }
593
+ ActionsComponent = { TablePaginationActions }
594
+ />
595
+ </ TableRow >
594
596
</ TableFooter >
595
597
</ Table >
596
598
</ div >
0 commit comments