From 56345874e32fe455666a97fa9afcdd25d8bd57ed Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Fri, 19 Feb 2021 11:12:00 -0500 Subject: [PATCH] Mark deprecated methods with UNSAFE_ prefix --- src/components/info-button/info-button.jsx | 2 +- src/components/modal/addtostudio/container.jsx | 2 +- src/views/teacherwaitingroom/teacherwaitingroom.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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/'; }