Fix console warnings.

This commit is contained in:
Yang Luo 2021-05-13 22:23:04 +08:00
parent e4b6f758a7
commit f4db41acb3
4 changed files with 3 additions and 14 deletions

View File

@ -6,16 +6,6 @@
"src": "favicon.png",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",

View File

@ -52,6 +52,7 @@ class OrganizationListPage extends React.Component {
favicon: "https://cdn.casbin.com/static/favicon.ico",
passwordType: "plain",
PasswordSalt: "",
phonePrefix: "86",
}
}

View File

@ -133,7 +133,7 @@ class UserEditPage extends React.Component {
const linkedValue = this.state.user[provider.type.toLowerCase()];
return (
<Row style={{marginTop: '20px'}} >
<Row key={provider.name} style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{
Setting.getProviderLogo(provider)

View File

@ -14,7 +14,7 @@
import React from 'react';
import {Link} from "react-router-dom";
import {Form, Input, Select, Checkbox, Button, Row, Col, Result} from 'antd';
import {Form, Input, Checkbox, Button, Row, Col, Result} from 'antd';
import * as Setting from "../Setting";
import * as AuthBackend from "./AuthBackend";
import i18next from "i18next";
@ -22,8 +22,6 @@ import * as Util from "./Util";
import {authConfig} from "./Auth";
import * as ApplicationBackend from "../backend/ApplicationBackend";
const { Option } = Select;
const formItemLayout = {
labelCol: {
xs: {