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:
@@ -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}
|
||||
|
Reference in New Issue
Block a user