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:
@@ -56,7 +56,7 @@ class LibContentToolbar extends React.Component {
|
||||
render() {
|
||||
|
||||
if (!this.props.userPerm) {
|
||||
return <div className="cur-view-toolbar"></div>
|
||||
return <div className="cur-view-toolbar"></div>;
|
||||
}
|
||||
|
||||
if (this.props.isViewFile) {
|
||||
@@ -64,7 +64,7 @@ class LibContentToolbar extends React.Component {
|
||||
<Fragment>
|
||||
<div className="cur-view-toolbar">
|
||||
<span className="sf2-icon-menu hidden-md-up d-md-none side-nav-toggle" title={gettext('Side Nav Menu')} onClick={this.props.onSideNavMenuClick}></span>
|
||||
<ViewFileToolbar
|
||||
<ViewFileToolbar
|
||||
path={this.props.path}
|
||||
repoID={this.props.repoID}
|
||||
userPerm={this.props.userPerm}
|
||||
@@ -93,7 +93,7 @@ class LibContentToolbar extends React.Component {
|
||||
<span className="sf2-icon-menu hidden-md-up d-md-none side-nav-toggle" title={gettext('Side Nav Menu')} onClick={this.props.onSideNavMenuClick}></span>
|
||||
{this.props.isDirentSelected ?
|
||||
<MultipleDirOperationToolbar
|
||||
repoID={this.props.repoID}
|
||||
repoID={this.props.repoID}
|
||||
path={this.props.path}
|
||||
userPerm={this.props.userPerm}
|
||||
repoEncrypted={this.props.repoEncrypted}
|
||||
@@ -116,7 +116,7 @@ class LibContentToolbar extends React.Component {
|
||||
currentMode={this.props.currentMode}
|
||||
switchViewMode={this.props.switchViewMode}
|
||||
/> :
|
||||
<DirOperationToolBar
|
||||
<DirOperationToolBar
|
||||
path={this.props.path}
|
||||
repoID={this.props.repoID}
|
||||
repoName={this.props.repoName}
|
||||
|
Reference in New Issue
Block a user