mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +08:00
Fix React warnings.
This commit is contained in:
@ -29,7 +29,7 @@ class UserListPage extends React.Component {
|
||||
};
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
UNSAFE_componentWillMount() {
|
||||
this.getUsers();
|
||||
}
|
||||
|
||||
@ -156,7 +156,7 @@ class UserListPage extends React.Component {
|
||||
width: '100px',
|
||||
render: (text, record, index) => {
|
||||
return (
|
||||
<a target="_blank" href={text}>
|
||||
<a target="_blank" rel="noreferrer" href={text}>
|
||||
<img src={text} alt={text} width={50} />
|
||||
</a>
|
||||
)
|
||||
@ -225,7 +225,7 @@ class UserListPage extends React.Component {
|
||||
title: i18next.t("general:Action"),
|
||||
dataIndex: '',
|
||||
key: 'op',
|
||||
width: '170px',
|
||||
width: '190px',
|
||||
render: (text, record, index) => {
|
||||
return (
|
||||
<div>
|
||||
|
Reference in New Issue
Block a user