1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +00:00

Fix eslint warnings (#5635)

* 01 fix eslint warnings

* fix code warnings

* fix code warnings

* fix code warnings

* fix code warnings

* fix code warnings
This commit is contained in:
Michael An
2023-09-13 08:40:50 +08:00
committed by GitHub
parent d829ba5b23
commit 14ce391007
520 changed files with 4774 additions and 3438 deletions

View File

@@ -42,7 +42,7 @@ class MoveDirent extends React.Component {
} else {
this.moveItem();
}
}
};
moveItems = () => {
let { repoID } = this.props;
@@ -93,7 +93,7 @@ class MoveDirent extends React.Component {
this.props.onItemsMove(repo, selectedPath);
this.toggle();
}
};
moveItem = () => {
let { repoID } = this.props;
@@ -129,11 +129,11 @@ class MoveDirent extends React.Component {
this.props.onItemMove(repo, this.props.dirent, selectedPath, this.props.path);
this.toggle();
}
};
toggle = () => {
this.props.onCancelMove();
}
};
onDirentItemClick = (repo, selectedPath) => {
this.setState({
@@ -141,7 +141,7 @@ class MoveDirent extends React.Component {
selectedPath: selectedPath,
errMessage: ''
});
}
};
onRepoItemClick = (repo) => {
this.setState({
@@ -149,7 +149,7 @@ class MoveDirent extends React.Component {
selectedPath: '/',
errMessage: ''
});
}
};
render() {
let title = gettext('Move {placeholder} to');