Skip to content

Commit 5802ea2

Browse files
committed
pagination, tooltip, popover fixed for muiv7+
Signed-off-by: YASHMAHAKAL <yvsst01@gmail.com>
1 parent e144db9 commit 5802ea2

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

examples/custom-components/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const CustomTooltip = (props) => {
2121
return (
2222
<MuiTooltip
2323
title={props.title}
24-
TransitionComponent={Fade}
25-
TransitionProps={{ timeout: 250 }}
24+
slots={{ transition: Fade }}
25+
slotProps={{ transition: { timeout: 250 } }}
2626
leaveDelay={250}>{props.children}</MuiTooltip>
2727
);
2828
};

examples/customize-footer/CustomFooter.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ class CustomFooter extends React.Component {
3737
page={page}
3838
labelRowsPerPage={textLabels.rowsPerPage}
3939
labelDisplayedRows={({ from, to, count }) => `${from}-${to} ${textLabels.displayRows} ${count}`}
40-
backIconButtonProps={{
41-
'aria-label': textLabels.previous,
42-
}}
43-
nextIconButtonProps={{
44-
'aria-label': textLabels.next,
40+
slotProps={{
41+
actions: {
42+
previousButton: {
43+
'aria-label': textLabels.previous,
44+
},
45+
nextButton: {
46+
'aria-label': textLabels.next,
47+
}
48+
}
4549
}}
4650
rowsPerPageOptions={[10,20,100]}
4751
onPageChange={this.handlePageChange}

0 commit comments

Comments
 (0)