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 (
|
||||
<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={() => (
|
||||
<div>
|
||||
{this.props.title}
|
||||
|
@ -194,13 +194,11 @@ class LoginPage extends React.Component {
|
||||
{i18next.t("login:Auto login")}
|
||||
</Checkbox>
|
||||
</Form.Item>
|
||||
<div style={{float: "right"}} onClick={() => {
|
||||
<a style={{float: "right"}} onClick={() => {
|
||||
Setting.goToForget(this, application);
|
||||
}}>
|
||||
<a>
|
||||
{i18next.t("login:Forgot password?")}
|
||||
</a>
|
||||
</div>
|
||||
</Form.Item>
|
||||
<Form.Item>
|
||||
<Button
|
||||
@ -215,11 +213,11 @@ class LoginPage extends React.Component {
|
||||
!application.enableSignUp ? null : (
|
||||
<div style={{float: "right"}}>
|
||||
{i18next.t("login:No account yet?")}
|
||||
<Link onClick={() => {
|
||||
<a onClick={() => {
|
||||
Setting.goToSignup(this, application);
|
||||
}}>
|
||||
{i18next.t("login:sign up now")}
|
||||
</Link>
|
||||
</a>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@ -257,11 +255,11 @@ class LoginPage extends React.Component {
|
||||
<br/>
|
||||
<div style={{float: "right"}}>
|
||||
{i18next.t("login:No account yet?")}
|
||||
<Link onClick={() => {
|
||||
<a onClick={() => {
|
||||
Setting.goToSignup(this, application);
|
||||
}}>
|
||||
{i18next.t("login:sign up now")}
|
||||
</Link>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user