1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00

[eslint] updated eslintrc and improved the code (#4702)

This commit is contained in:
llj
2020-11-02 13:56:35 +08:00
committed by GitHub
parent ed3e5fc416
commit 04f29704b3
337 changed files with 1586 additions and 1585 deletions

View File

@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { gettext } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
import { Utils } from '../../utils/utils';
@@ -25,7 +25,7 @@ class SetOrgUserContactEmail extends React.Component {
handleInputChange = (e) => {
this.setState({
inputValue: e.target.value
inputValue: e.target.value
});
}
@@ -34,7 +34,7 @@ class SetOrgUserContactEmail extends React.Component {
const contactEmail = this.state.inputValue.trim();
this.setState({
submitBtnDisabled: true
submitBtnDisabled: true
});
seafileAPI.orgAdminSetOrgUserContactEmail(orgID, email, contactEmail).then((res) => {
@@ -46,7 +46,7 @@ class SetOrgUserContactEmail extends React.Component {
this.setState({
formErrorMsg: errorMsg,
submitBtnDisabled: false
});
});
});
}