Skip to content

Commit

Permalink
Merge pull request #1 from PenseAPP-MKdata/fix/warnings-from-deprecat…
Browse files Browse the repository at this point in the history
…ed-props-material-ui-4.12.1

fix(gregnb#1747): Replace deprecated props in mui based components
  • Loading branch information
joaomantovani committed Aug 12, 2021
2 parents 7558e73 + 25b8cb9 commit db97d13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/components/Popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ const Popover = ({ className, trigger, refExit, hide, content, ...providedProps
<MuiPopover
elevation={2}
open={isOpen}
onClose={handleRequestClose}
onExited={handleOnExit}
TransitionProps={{ onExited: handleOnExit, onClose: handleRequestClose }}
anchorEl={anchorEl.current}
anchorOrigin={anchorOriginSpecs}
transformOrigin={transformOriginSpecs}
Expand Down
4 changes: 2 additions & 2 deletions src/components/TablePagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ function TablePagination(props) {
},
}}
rowsPerPageOptions={options.rowsPerPageOptions}
onChangePage={handlePageChange}
onChangeRowsPerPage={handleRowChange}
onPageChange={handlePageChange}
onRowsPerPageChange={handleRowChange}
/>
</div>
</MuiTableCell>
Expand Down
2 changes: 1 addition & 1 deletion src/components/TableToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class TableToolbar extends React.Component {
<IconButton
aria-label={search}
data-testid={search + '-iconButton'}
buttonRef={el => (this.searchButton = el)}
ref={el => (this.searchButton = el)}
classes={{ root: this.getActiveIcon(classes, 'search') }}
disabled={options.search === 'disabled'}
onClick={this.handleSearchIconClick}>
Expand Down

0 comments on commit db97d13

Please sign in to comment.