Fix React warnings.

This commit is contained in:
Yang Luo
2021-03-27 11:38:15 +08:00
parent 2063f1d27d
commit 6c2c5be33d
16 changed files with 32 additions and 31 deletions

View File

@ -13,13 +13,11 @@
// limitations under the License.
import React from "react";
import {Button, Card, Col, Input, Row, Select} from 'antd';
import {Button, Card, Col, Input, Row} from 'antd';
import * as TokenBackend from "./backend/TokenBackend";
import * as Setting from "./Setting";
import i18next from "i18next";
const { Option } = Select;
class TokenEditPage extends React.Component {
constructor(props) {
super(props);
@ -30,7 +28,7 @@ class TokenEditPage extends React.Component {
};
}
componentWillMount() {
UNSAFE_componentWillMount() {
this.getToken();
}