1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 18:03:48 +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,10 +42,9 @@ class CopyDirent extends React.Component {
} else {
this.copyItem();
}
}
};
copyItems = () => {
let { repoID } = this.props;
let { repo, selectedPath } = this.state;
let message = gettext('Invalid destination path');
@@ -87,7 +86,7 @@ class CopyDirent extends React.Component {
this.props.onItemsCopy(repo, selectedPath);
this.toggle();
}
};
copyItem = () => {
let { repo, repoID, selectedPath } = this.state;
@@ -116,11 +115,11 @@ class CopyDirent extends React.Component {
this.props.onItemCopy(repo, this.props.dirent, selectedPath, this.props.path);
this.toggle();
}
};
toggle = () => {
this.props.onCancelCopy();
}
};
onDirentItemClick = (repo, selectedPath) => {
this.setState({
@@ -128,7 +127,7 @@ class CopyDirent extends React.Component {
selectedPath: selectedPath,
errMessage: ''
});
}
};
onRepoItemClick = (repo) => {
this.setState({
@@ -136,7 +135,7 @@ class CopyDirent extends React.Component {
selectedPath: '/',
errMessage: ''
});
}
};
render() {
let title = gettext('Copy {placeholder} to');