mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
fix: <Link> to <a> and table key
Signed-off-by: WindSpirit <simon343riley@gmail.com>
This commit is contained in:
parent
7434d0f3d3
commit
860fe91725
@ -95,7 +95,7 @@ class UrlTable extends React.Component {
|
|||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Table rowKey="id" columns={columns} dataSource={table.map(row => ({id: row}))} size="middle" bordered pagination={{pageSize: 100}}
|
<Table rowKey="index" columns={columns} dataSource={table.map((row, i) => ({id: row, index: i}))} size="middle" bordered pagination={{pageSize: 100}}
|
||||||
title={() => (
|
title={() => (
|
||||||
<div>
|
<div>
|
||||||
{this.props.title}
|
{this.props.title}
|
||||||
|
@ -194,13 +194,11 @@ class LoginPage extends React.Component {
|
|||||||
{i18next.t("login:Auto login")}
|
{i18next.t("login:Auto login")}
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<div style={{float: "right"}} onClick={() => {
|
<a style={{float: "right"}} onClick={() => {
|
||||||
Setting.goToForget(this, application);
|
Setting.goToForget(this, application);
|
||||||
}}>
|
}}>
|
||||||
<a>
|
{i18next.t("login:Forgot password?")}
|
||||||
{i18next.t("login:Forgot password?")}
|
</a>
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item>
|
<Form.Item>
|
||||||
<Button
|
<Button
|
||||||
@ -215,11 +213,11 @@ class LoginPage extends React.Component {
|
|||||||
!application.enableSignUp ? null : (
|
!application.enableSignUp ? null : (
|
||||||
<div style={{float: "right"}}>
|
<div style={{float: "right"}}>
|
||||||
{i18next.t("login:No account yet?")}
|
{i18next.t("login:No account yet?")}
|
||||||
<Link onClick={() => {
|
<a onClick={() => {
|
||||||
Setting.goToSignup(this, application);
|
Setting.goToSignup(this, application);
|
||||||
}}>
|
}}>
|
||||||
{i18next.t("login:sign up now")}
|
{i18next.t("login:sign up now")}
|
||||||
</Link>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -257,11 +255,11 @@ class LoginPage extends React.Component {
|
|||||||
<br/>
|
<br/>
|
||||||
<div style={{float: "right"}}>
|
<div style={{float: "right"}}>
|
||||||
{i18next.t("login:No account yet?")}
|
{i18next.t("login:No account yet?")}
|
||||||
<Link onClick={() => {
|
<a onClick={() => {
|
||||||
Setting.goToSignup(this, application);
|
Setting.goToSignup(this, application);
|
||||||
}}>
|
}}>
|
||||||
{i18next.t("login:sign up now")}
|
{i18next.t("login:sign up now")}
|
||||||
</Link>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user