1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +00:00

Modify some naming conventions

This commit is contained in:
zxj96
2019-04-23 16:50:17 +08:00
parent 791713a746
commit 978288eb39
7 changed files with 37 additions and 37 deletions

View File

@@ -45,8 +45,8 @@ const propTypes = {
onItemsCopy: PropTypes.func.isRequired,
onItemsDelete: PropTypes.func.isRequired,
onFileTagChanged: PropTypes.func,
scrollPage: PropTypes.func.isRequired,
isCurrentPage: PropTypes.bool.isRequired,
onPageScroll: PropTypes.func.isRequired,
itemShownLimit: PropTypes.bool.isRequired,
};
class DirentListView extends React.Component {
@@ -86,7 +86,7 @@ class DirentListView extends React.Component {
}
componentWillReceiveProps(nextProps) {
if (!this.props.isCurrentPage) {
if (this.props.itemShownLimit) {
this.setState({itemIdex: 100})
}
}
@@ -155,7 +155,7 @@ class DirentListView extends React.Component {
itemIdex += 100
this.setState({itemIdex: itemIdex})
}
this.props.scrollPage();
this.props.onPageScroll();
}
// for image popup