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:
@@ -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
|
||||
|
Reference in New Issue
Block a user