1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-03 04:21:15 +00:00

fix eslint warning and code format (#5877)

This commit is contained in:
Michael An 2024-01-03 21:59:44 +08:00 committed by GitHub
parent adc8960fd8
commit 7456cf1fae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 21 deletions

View File

@ -126,21 +126,17 @@ class DeletedRepoItem extends Component {
}
onMouseEnter = () => {
if (!this.props.isItemFreezed) {
this.setState({
hideRestoreMenu: false,
highlight: true,
});
}
};
onMouseLeave = () => {
if (!this.props.isItemFreezed) {
this.setState({
hideRestoreMenu: true,
highlight: false,
});
}
};
restoreDeletedRepo = (e) => {
@ -187,7 +183,6 @@ class DeletedRepoItem extends Component {
}
DeletedRepoItem.propTypes = {
isItemFreezed: PropTypes.bool.isRequired,
repo: PropTypes.object.isRequired,
refreshDeletedRepoList: PropTypes.func.isRequired,
};

View File

@ -5,7 +5,7 @@ import { siteRoot, gettext } from '../../../utils/constants';
const propTypes = {
orgID: PropTypes.string,
orgName: PropTypes.string.isRequired,
orgName: PropTypes.string,
currentItem: PropTypes.string.isRequired
};