@@ -515,7 +515,7 @@ class FilesBox extends React.Component {
return (
this.clearMessage()}>
{problems.map((problem, i) => {
- return
{problem};
+ return {problem};
})}
);
diff --git a/web/src/main/LatestReplyBox.js b/web/src/main/LatestReplyBox.js
index 095b087c..9c9f0c57 100644
--- a/web/src/main/LatestReplyBox.js
+++ b/web/src/main/LatestReplyBox.js
@@ -57,7 +57,7 @@ class LatestReplyBox extends React.Component {
this.getRepliesNum();
}
- componentWillReceiveProps(newProps) {
+ UNSAFE_componentWillReceiveProps(newProps) {
if (newProps.location !== this.props.location) {
const params = new URLSearchParams(newProps.location.search);
let page = params.get("p");
diff --git a/web/src/main/MemberBox.js b/web/src/main/MemberBox.js
index c545ac1d..b5b84bc5 100644
--- a/web/src/main/MemberBox.js
+++ b/web/src/main/MemberBox.js
@@ -42,7 +42,7 @@ class MemberBox extends React.Component {
this.getFavoriteStatus();
}
- componentWillReceiveProps(newProps) {
+ UNSAFE_componentWillReceiveProps(newProps) {
if (newProps.location !== this.props.location) {
this.setState(
{
diff --git a/web/src/main/NewBox.js b/web/src/main/NewBox.js
index a964ba35..9c5710f8 100644
--- a/web/src/main/NewBox.js
+++ b/web/src/main/NewBox.js
@@ -228,7 +228,7 @@ class NewBox extends React.Component {
{i18next.t("error:Please resolve the following issues before creating a new topic")}
{problems.map((problem, i) => {
- return - {problem}
;
+ return - {problem}
;
})}
{this.state.message !== "" ? - {i18next.t(`error:${this.state.message}`)}
: null}
diff --git a/web/src/main/NewReplyBox.js b/web/src/main/NewReplyBox.js
index e5db4ef6..bfccec37 100644
--- a/web/src/main/NewReplyBox.js
+++ b/web/src/main/NewReplyBox.js
@@ -119,7 +119,7 @@ class NewReplyBox extends React.Component {
{i18next.t("reply:Please resolve the following issues before submitting")}
{problems.map((problem, i) => {
- return - {problem}
;
+ return - {problem}
;
})}
diff --git a/web/src/main/NodeBox.js b/web/src/main/NodeBox.js
index c5bc9881..0cd5cc5a 100644
--- a/web/src/main/NodeBox.js
+++ b/web/src/main/NodeBox.js
@@ -67,7 +67,7 @@ class NodeBox extends React.Component {
NodeBackend.addNodeBrowseCount(this.state.nodeId);
}
- componentWillReceiveProps(newProps) {
+ UNSAFE_componentWillReceiveProps(newProps) {
if (newProps.location !== this.props.location) {
const params = new URLSearchParams(newProps.location.search);
let page = params.get("p");
diff --git a/web/src/main/NotificationBox.js b/web/src/main/NotificationBox.js
index d12d8b1b..e60f2b46 100644
--- a/web/src/main/NotificationBox.js
+++ b/web/src/main/NotificationBox.js
@@ -56,7 +56,7 @@ class NotificationBox extends React.Component {
this.getNotifications();
}
- componentWillReceiveProps(newProps) {
+ UNSAFE_componentWillReceiveProps(newProps) {
if (newProps.location !== this.props.location) {
const params = new URLSearchParams(newProps.location.search);
let page = params.get("p");
diff --git a/web/src/main/PageColumn.js b/web/src/main/PageColumn.js
index c17923d3..881ffc76 100644
--- a/web/src/main/PageColumn.js
+++ b/web/src/main/PageColumn.js
@@ -42,7 +42,7 @@ class PageColumn extends React.Component {
}
}
- componentWillReceiveProps(newProps) {
+ UNSAFE_componentWillReceiveProps(newProps) {
if (newProps.page !== this.props.page) {
this.getMaxPage();
}
diff --git a/web/src/main/RankingPlayerBox.js b/web/src/main/RankingPlayerBox.js
index 73f4e072..e2fa5a25 100644
--- a/web/src/main/RankingPlayerBox.js
+++ b/web/src/main/RankingPlayerBox.js
@@ -70,7 +70,7 @@ class RankingPlayerBox extends React.Component {