mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 00:43:53 +00:00
[eslint] updated eslintrc and improved the code (#4702)
This commit is contained in:
@@ -26,13 +26,13 @@ class Paginator extends Component {
|
||||
const { currentPage, curPerPage } = this.props;
|
||||
this.updateURL(currentPage - 1, curPerPage);
|
||||
this.props.gotoPreviousPage();
|
||||
}
|
||||
}
|
||||
|
||||
goToNext = () => {
|
||||
const { currentPage, curPerPage } = this.props;
|
||||
this.updateURL(currentPage + 1, curPerPage);
|
||||
this.props.gotoNextPage();
|
||||
}
|
||||
}
|
||||
|
||||
updateURL = (page, perPage) => {
|
||||
let url = new URL(location.href);
|
||||
|
Reference in New Issue
Block a user