Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
56345874
Commit
56345874
authored
Feb 19, 2021
by
Paul Kaplan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark deprecated methods with UNSAFE_ prefix
parent
0a8ed951
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/components/info-button/info-button.jsx
src/components/info-button/info-button.jsx
+1
-1
src/components/modal/addtostudio/container.jsx
src/components/modal/addtostudio/container.jsx
+1
-1
src/views/teacherwaitingroom/teacherwaitingroom.jsx
src/views/teacherwaitingroom/teacherwaitingroom.jsx
+1
-1
No files found.
src/components/info-button/info-button.jsx
View file @
56345874
...
@@ -21,7 +21,7 @@ class InfoButton extends React.Component {
...
@@ -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
()
{
...
...
src/components/modal/addtostudio/container.jsx
View file @
56345874
...
@@ -17,7 +17,7 @@ class AddToStudioModal extends React.Component {
...
@@ -17,7 +17,7 @@ class AddToStudioModal extends React.Component {
};
};
}
}
componentWillUpdate
()
{
UNSAFE_
componentWillUpdate
()
{
this
.
closeIfFinishedUpdating
();
this
.
closeIfFinishedUpdating
();
}
}
...
...
src/views/teacherwaitingroom/teacherwaitingroom.jsx
View file @
56345874
...
@@ -11,7 +11,7 @@ const render = require('../../lib/render.jsx');
...
@@ -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/
'
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment