From b2952e6d0d4a348850ad634ca06479cbbad9e9cc Mon Sep 17 00:00:00 2001 From: gitstart Date: Mon, 19 Feb 2024 15:19:46 +0000 Subject: [PATCH 1/3] fix: change TablePagination SelectProps to slotProps Co-authored-by: jasmyneokudo <38866525+jasmyneokudo@users.noreply.github.com> --- .../table/CustomPaginationActionsTable.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/data/material/components/table/CustomPaginationActionsTable.tsx b/docs/data/material/components/table/CustomPaginationActionsTable.tsx index 0013c928924dcb..efc4471c73eb75 100644 --- a/docs/data/material/components/table/CustomPaginationActionsTable.tsx +++ b/docs/data/material/components/table/CustomPaginationActionsTable.tsx @@ -157,11 +157,13 @@ export default function CustomPaginationActionsTable() { count={rows.length} rowsPerPage={rowsPerPage} page={page} - SelectProps={{ - inputProps: { - 'aria-label': 'rows per page', - }, - native: true, + slotProps={{ + select: { + inputProps: { + 'aria-label': 'rows per page', + }, + native: true, + } }} onPageChange={handleChangePage} onRowsPerPageChange={handleChangeRowsPerPage} From 3b7f83d40bf0f2f09f11d43aa73ae9b7f1ba5e8e Mon Sep 17 00:00:00 2001 From: gitstart Date: Mon, 19 Feb 2024 17:00:21 +0000 Subject: [PATCH 2/3] fix: prettier error Co-authored-by: jasmyneokudo <38866525+jasmyneokudo@users.noreply.github.com> --- .../material/components/table/CustomPaginationActionsTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/data/material/components/table/CustomPaginationActionsTable.tsx b/docs/data/material/components/table/CustomPaginationActionsTable.tsx index efc4471c73eb75..df40a5df9f2f58 100644 --- a/docs/data/material/components/table/CustomPaginationActionsTable.tsx +++ b/docs/data/material/components/table/CustomPaginationActionsTable.tsx @@ -163,7 +163,7 @@ export default function CustomPaginationActionsTable() { 'aria-label': 'rows per page', }, native: true, - } + }, }} onPageChange={handleChangePage} onRowsPerPageChange={handleChangeRowsPerPage} From 106eab7d4b9eb408cb1b40dae786d4ddbf8ca53f Mon Sep 17 00:00:00 2001 From: gitstart Date: Mon, 19 Feb 2024 17:27:49 +0000 Subject: [PATCH 3/3] fix: update typescript docs Co-authored-by: jasmyneokudo <38866525+jasmyneokudo@users.noreply.github.com> --- .../components/table/CustomPaginationActionsTable.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/data/material/components/table/CustomPaginationActionsTable.js b/docs/data/material/components/table/CustomPaginationActionsTable.js index a5b38d95388375..f3eafc5c9acbf8 100644 --- a/docs/data/material/components/table/CustomPaginationActionsTable.js +++ b/docs/data/material/components/table/CustomPaginationActionsTable.js @@ -148,11 +148,13 @@ export default function CustomPaginationActionsTable() { count={rows.length} rowsPerPage={rowsPerPage} page={page} - SelectProps={{ - inputProps: { - 'aria-label': 'rows per page', + slotProps={{ + select: { + inputProps: { + 'aria-label': 'rows per page', + }, + native: true, }, - native: true, }} onPageChange={handleChangePage} onRowsPerPageChange={handleChangeRowsPerPage}