Fix React warnings.

This commit is contained in:
Yang Luo
2021-03-27 11:38:15 +08:00
parent 2063f1d27d
commit 6c2c5be33d
16 changed files with 32 additions and 31 deletions

View File

@ -29,7 +29,7 @@ class OrganizationListPage extends React.Component {
};
}
componentWillMount() {
UNSAFE_componentWillMount() {
this.getOrganizations();
}
@ -122,7 +122,7 @@ class OrganizationListPage extends React.Component {
sorter: (a, b) => a.websiteUrl.localeCompare(b.websiteUrl),
render: (text, record, index) => {
return (
<a target="_blank" href={text}>
<a target="_blank" rel="noreferrer" href={text}>
{text}
</a>
)