mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 08:31:23 -05:00
Mark deprecated methods with UNSAFE_ prefix
This commit is contained in:
parent
0a8ed95163
commit
56345874e3
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ class InfoButton extends React.Component {
|
||||||
visible: false
|
visible: false
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
componentWillMount () {
|
UNSAFE_componentWillMount () {
|
||||||
window.addEventListener('mousedown', this.handleClick, false);
|
window.addEventListener('mousedown', this.handleClick, false);
|
||||||
}
|
}
|
||||||
componentWillUnmount () {
|
componentWillUnmount () {
|
||||||
|
|
|
@ -17,7 +17,7 @@ class AddToStudioModal extends React.Component {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUpdate () {
|
UNSAFE_componentWillUpdate () {
|
||||||
this.closeIfFinishedUpdating();
|
this.closeIfFinishedUpdating();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ const render = require('../../lib/render.jsx');
|
||||||
require('./teacherwaitingroom.scss');
|
require('./teacherwaitingroom.scss');
|
||||||
|
|
||||||
class TeacherWaitingRoom extends React.Component {
|
class TeacherWaitingRoom extends React.Component {
|
||||||
componentWillReceiveProps (nextProps) {
|
UNSAFE_componentWillReceiveProps (nextProps) {
|
||||||
if (nextProps.approved) {
|
if (nextProps.approved) {
|
||||||
window.location.href = '/educators/classes/';
|
window.location.href = '/educators/classes/';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue