diff --git a/src/components/info-button/info-button.jsx b/src/components/info-button/info-button.jsx index 92414f47b..fb98e0e4f 100644 --- a/src/components/info-button/info-button.jsx +++ b/src/components/info-button/info-button.jsx @@ -21,7 +21,7 @@ class InfoButton extends React.Component { visible: false }; } - componentWillMount () { + UNSAFE_componentWillMount () { window.addEventListener('mousedown', this.handleClick, false); } componentWillUnmount () { diff --git a/src/components/modal/addtostudio/container.jsx b/src/components/modal/addtostudio/container.jsx index a03f09074..868fe35c2 100644 --- a/src/components/modal/addtostudio/container.jsx +++ b/src/components/modal/addtostudio/container.jsx @@ -17,7 +17,7 @@ class AddToStudioModal extends React.Component { }; } - componentWillUpdate () { + UNSAFE_componentWillUpdate () { this.closeIfFinishedUpdating(); } diff --git a/src/views/teacherwaitingroom/teacherwaitingroom.jsx b/src/views/teacherwaitingroom/teacherwaitingroom.jsx index 0c50dea8e..dfa51b93f 100644 --- a/src/views/teacherwaitingroom/teacherwaitingroom.jsx +++ b/src/views/teacherwaitingroom/teacherwaitingroom.jsx @@ -11,7 +11,7 @@ const render = require('../../lib/render.jsx'); require('./teacherwaitingroom.scss'); class TeacherWaitingRoom extends React.Component { - componentWillReceiveProps (nextProps) { + UNSAFE_componentWillReceiveProps (nextProps) { if (nextProps.approved) { window.location.href = '/educators/classes/'; }