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

@ -28,7 +28,7 @@ class OrganizationEditPage extends React.Component {
};
}
componentWillMount() {
UNSAFE_componentWillMount() {
this.getOrganization();
}
@ -68,7 +68,7 @@ class OrganizationEditPage extends React.Component {
} style={{marginLeft: '5px'}} type="inner">
<Row style={{marginTop: '10px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Name")}:
{i18next.t("general:Name")}:
</Col>
<Col span={22} >
<Input value={this.state.organization.name} onChange={e => {