mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-12 12:22:13 +00:00
fix eslint warning and code format (#5877)
This commit is contained in:
parent
adc8960fd8
commit
7456cf1fae
@ -126,21 +126,17 @@ class DeletedRepoItem extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMouseEnter = () => {
|
onMouseEnter = () => {
|
||||||
if (!this.props.isItemFreezed) {
|
|
||||||
this.setState({
|
this.setState({
|
||||||
hideRestoreMenu: false,
|
hideRestoreMenu: false,
|
||||||
highlight: true,
|
highlight: true,
|
||||||
});
|
});
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
onMouseLeave = () => {
|
onMouseLeave = () => {
|
||||||
if (!this.props.isItemFreezed) {
|
|
||||||
this.setState({
|
this.setState({
|
||||||
hideRestoreMenu: true,
|
hideRestoreMenu: true,
|
||||||
highlight: false,
|
highlight: false,
|
||||||
});
|
});
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
restoreDeletedRepo = (e) => {
|
restoreDeletedRepo = (e) => {
|
||||||
@ -187,7 +183,6 @@ class DeletedRepoItem extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DeletedRepoItem.propTypes = {
|
DeletedRepoItem.propTypes = {
|
||||||
isItemFreezed: PropTypes.bool.isRequired,
|
|
||||||
repo: PropTypes.object.isRequired,
|
repo: PropTypes.object.isRequired,
|
||||||
refreshDeletedRepoList: PropTypes.func.isRequired,
|
refreshDeletedRepoList: PropTypes.func.isRequired,
|
||||||
};
|
};
|
||||||
|
@ -5,7 +5,7 @@ import { siteRoot, gettext } from '../../../utils/constants';
|
|||||||
|
|
||||||
const propTypes = {
|
const propTypes = {
|
||||||
orgID: PropTypes.string,
|
orgID: PropTypes.string,
|
||||||
orgName: PropTypes.string.isRequired,
|
orgName: PropTypes.string,
|
||||||
currentItem: PropTypes.string.isRequired
|
currentItem: PropTypes.string.isRequired
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user