mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-17 04:03:23 +08:00
Fix React warnings.
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user