Skip to content

Commit

Permalink
[chore] remove warning about injectCSS.
Browse files Browse the repository at this point in the history
`injectCSS` was deprecated since version 0.5.0.
Time to finally remove it.
  • Loading branch information
diasbruno committed Oct 6, 2017
1 parent f77b53e commit de3c039
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/components/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@ export default class Modal extends Component {
ariaAppHider.setElement(element);
}

/* eslint-disable no-console */
static injectCSS() {
(process.env.NODE_ENV !== "production")
&& console.warn(
'React-Modal: injectCSS has been deprecated ' +
'and no longer has any effect. It will be removed in a later version'
);
}
/* eslint-enable no-console */

/* eslint-disable react/no-unused-prop-types */
static propTypes = {
isOpen: PropTypes.bool.isRequired,
Expand Down

0 comments on commit de3c039

Please sign in to comment.