1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 10:50:24 +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

@@ -42,12 +42,12 @@ const propTypes = {
};
class DirListView extends React.Component {
render() {
if (this.props.path === '/' && this.props.direntList.length === 0) {
return (
<DirentNoneView
<DirentNoneView
path={this.props.path}
isDirentListLoading={this.props.isDirentListLoading}
onAddFile={this.props.onAddFile}
@@ -58,7 +58,7 @@ class DirListView extends React.Component {
return (
<Fragment>
{this.props.isRepoInfoBarShow && (
<RepoInfoBar
<RepoInfoBar
repoID={this.props.repoID}
currentPath={this.props.path}
readmeMarkdown={this.props.readmeMarkdown}