1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 19:08:21 +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

@@ -49,7 +49,7 @@ class MainPanel extends Component {
let pathElem = paths.map((item, index) => {
if (item === '') {
return;
}
}
if (index === (paths.length - 1)) {
return (
<Fragment key={index}>
@@ -62,9 +62,9 @@ class MainPanel extends Component {
return (
<Fragment key={index} >
<span className="path-split">/</span>
<a
className="path-link"
data-path={nodePath}
<a
className="path-link"
data-path={nodePath}
onClick={this.onMainNavBarClick}>
{item}
</a>
@@ -142,7 +142,7 @@ class MainPanel extends Component {
<WikiDirListView
path={this.props.path}
direntList={this.props.direntList}
onDirentClick={this.props.onDirentClick}
onDirentClick={this.props.onDirentClick}
/>
)}
</div>