Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixed all deprecation warnings #1796

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/Popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ const Popover = ({ className, trigger, refExit, hide, content, ...providedProps
elevation={2}
open={isOpen}
onClose={handleRequestClose}
onExited={handleOnExit}
TransitionProps={{
onExited: handleOnExit,
}}
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 @@ -354,7 +354,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
4 changes: 2 additions & 2 deletions test/MUIDataTableToolbar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import DownloadIcon from '@material-ui/icons/CloudDownload';
import FilterIcon from '@material-ui/icons/FilterList';
import PrintIcon from '@material-ui/icons/Print';
import SearchIcon from '@material-ui/icons/Search';
import CloseIcon from "@material-ui/icons/Close";
import CloseIcon from '@material-ui/icons/Close';
import ViewColumnIcon from '@material-ui/icons/ViewColumn';
import { assert } from 'chai';
import { mount, shallow } from 'enzyme';
Expand Down Expand Up @@ -106,7 +106,7 @@ describe('<TableToolbar />', function() {
it('should render a toolbar with search box and no search icon if option.searchAlwaysOpen = true', () => {
const newOptions = { ...options, searchAlwaysOpen: true };
const mountWrapper = mount(
<TableToolbar columns={columns} data={data} options={newOptions} setTableAction={setTableAction} />,
<TableToolbar columns={columns} data={data} options={newOptions} setTableAction={setTableAction} />,
);

// check that textfield is rendered
Expand Down