Skip to content

Commit

Permalink
fix eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 5, 2019
1 parent 435f396 commit ff974b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/material-ui-styles/src/withStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const withStyles = (stylesOrCreator, options = {}) => Component => {
return null;
}

return null;
// return new Error(
// 'Material-UI: The `innerRef` prop is deprecated and will be removed in v5. ' +
// 'Refs are now automatically forwarded to the inner component.',
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui-styles/src/withStyles.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Input } from '@material-ui/core';
import { createMount } from '@material-ui/core/test-utils';
import { isMuiElement } from '@material-ui/core/utils/reactHelpers';
import createMuiTheme from '@material-ui/core/styles/createMuiTheme';
import consoleErrorMock from 'test/utils/consoleErrorMock';
// import consoleErrorMock from 'test/utils/consoleErrorMock';
import StylesProvider from './StylesProvider';
import ThemeProvider from './ThemeProvider';
import withStyles from './withStyles';
Expand Down

0 comments on commit ff974b3

Please sign in to comment.