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

@@ -14,6 +14,7 @@ const propTypes = {
onDeleteRepo: PropTypes.func.isRequired,
onTransferRepo: PropTypes.func.isRequired,
onRepoClick: PropTypes.func.isRequired,
onMonitorRepo: PropTypes.func.isRequired,
};
class MylibRepoListView extends React.Component {
@@ -27,32 +28,32 @@ class MylibRepoListView extends React.Component {
onFreezedItem = () => {
this.setState({isItemFreezed: true});
}
};
onUnfreezedItem = () => {
this.setState({isItemFreezed: false});
}
};
sortByName = (e) => {
e.preventDefault();
const sortBy = 'name';
const sortOrder = this.props.sortOrder == 'asc' ? 'desc' : 'asc';
this.props.sortRepoList(sortBy, sortOrder);
}
};
sortByTime = (e) => {
e.preventDefault();
const sortBy = 'time';
const sortOrder = this.props.sortOrder == 'asc' ? 'desc' : 'asc';
this.props.sortRepoList(sortBy, sortOrder);
}
};
sortBySize = (e) => {
e.preventDefault();
const sortBy = 'size';
const sortOrder = this.props.sortOrder == 'asc' ? 'desc' : 'asc';
this.props.sortRepoList(sortBy, sortOrder);
}
};
renderRepoListView = () => {
return (
@@ -75,7 +76,7 @@ class MylibRepoListView extends React.Component {
})}
</Fragment>
);
}
};
renderPCUI = () => {
const showStorageBackend = storages.length > 0;
@@ -98,7 +99,7 @@ class MylibRepoListView extends React.Component {
</tbody>
</table>
);
}
};
renderMobileUI = () => {
return (
@@ -109,7 +110,7 @@ class MylibRepoListView extends React.Component {
</tbody>
</table>
);
}
};
render() {
return (