mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 18:54:03 +08:00
fix: fix all frontend warnings (#983)
* fix:fix all frontend warnings * fix:fix all frontend warnings * fix:fix all frontend warnings * fix:fix all frontend warnings * fix:fix all frontend warnings * fix:fix all frontend warnings
This commit is contained in:
parent
deed857788
commit
4dd67a8dcb
@ -103,7 +103,7 @@ export const CropperDiv = (props) => {
|
|||||||
onCancel={handleCancel}
|
onCancel={handleCancel}
|
||||||
width={600}
|
width={600}
|
||||||
footer={
|
footer={
|
||||||
[<Button block type="primary" onClick={handleOk}>{i18next.t("user:Set new profile picture")}</Button>]
|
[<Button block key="submit" type="primary" onClick={handleOk}>{i18next.t("user:Set new profile picture")}</Button>]
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Col style={{margin: "0px auto 40px auto", width: 1000, height: 300}}>
|
<Col style={{margin: "0px auto 40px auto", width: 1000, height: 300}}>
|
||||||
|
@ -83,7 +83,7 @@ class PaymentResultPage extends React.Component {
|
|||||||
title={`${i18next.t("payment:The payment is still under processing")}: ${payment.productDisplayName}, ${i18next.t("payment:the current state is")}: ${payment.state}, ${i18next.t("payment:please wait for a few seconds...")}`}
|
title={`${i18next.t("payment:The payment is still under processing")}: ${payment.productDisplayName}, ${i18next.t("payment:the current state is")}: ${payment.state}, ${i18next.t("payment:please wait for a few seconds...")}`}
|
||||||
subTitle={i18next.t("payment:Please click the below button to return to the original website")}
|
subTitle={i18next.t("payment:Please click the below button to return to the original website")}
|
||||||
extra={[
|
extra={[
|
||||||
<Spin size="large" tip={i18next.t("payment:Processing...")} />,
|
<Spin key="returnUrl" size="large" tip={i18next.t("payment:Processing...")} />,
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -285,7 +285,7 @@ class LoginPage extends React.Component {
|
|||||||
title="Sign Up Error"
|
title="Sign Up Error"
|
||||||
subTitle={"The application does not allow to sign up new account"}
|
subTitle={"The application does not allow to sign up new account"}
|
||||||
extra={[
|
extra={[
|
||||||
<Link onClick={() => {
|
<Link key="login" onClick={() => {
|
||||||
Setting.goToLogin(this, application);
|
Setting.goToLogin(this, application);
|
||||||
}}>
|
}}>
|
||||||
<Button type="primary" key="signin">
|
<Button type="primary" key="signin">
|
||||||
|
@ -16,7 +16,7 @@ import React from "react";
|
|||||||
import * as Setting from "../Setting";
|
import * as Setting from "../Setting";
|
||||||
|
|
||||||
class OdicDiscoveryPage extends React.Component {
|
class OdicDiscoveryPage extends React.Component {
|
||||||
componentWillMount() {
|
UNSAFE_componentWillMount() {
|
||||||
if (Setting.isLocalhost()) {
|
if (Setting.isLocalhost()) {
|
||||||
Setting.goToLink(`${Setting.ServerUrl}/.well-known/openid-configuration`);
|
Setting.goToLink(`${Setting.ServerUrl}/.well-known/openid-configuration`);
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ class HomePage extends React.Component {
|
|||||||
{
|
{
|
||||||
items.map(item => {
|
items.map(item => {
|
||||||
return (
|
return (
|
||||||
<SingleCard logo={item.logo} link={item.link} title={item.name} desc={item.organizer} isSingle={items.length === 1} />
|
<SingleCard key={item.link} logo={item.logo} link={item.link} title={item.name} desc={item.organizer} isSingle={items.length === 1} />
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ class AffiliationSelect extends React.Component {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount() {
|
UNSAFE_componentWillMount() {
|
||||||
this.getAddressOptions(this.props.application);
|
this.getAddressOptions(this.props.application);
|
||||||
this.getAffiliationOptions(this.props.application, this.props.user);
|
this.getAffiliationOptions(this.props.application, this.props.user);
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ class OAuthWidget extends React.Component {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount() {
|
UNSAFE_componentWillMount() {
|
||||||
this.getAddressOptions(this.props.application);
|
this.getAddressOptions(this.props.application);
|
||||||
this.getAffiliationOptions(this.props.application, this.props.user);
|
this.getAffiliationOptions(this.props.application, this.props.user);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user