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

@@ -40,8 +40,8 @@ const propTypes = {
isDirentDetailShow: PropTypes.bool.isRequired,
onGridItemClick: PropTypes.func,
onAddFolder: PropTypes.func.isRequired,
scrollPage: PropTypes.func.isRequired,
isCurrentPage: PropTypes.bool.isRequired
onPageScroll: PropTypes.func.isRequired,
itemShownLimit: PropTypes.bool.isRequired
};
class DirentGridView extends React.Component{
@@ -73,8 +73,8 @@ class DirentGridView extends React.Component{
}
componentWillReceiveProps(nextProps) {
if (!this.props.isCurrentPage) {
this.setState({itemIdex: 100})
if (this.props.itemShownLimit) {
this.setState({itemIdex: 100});
}
}
@@ -101,7 +101,7 @@ class DirentGridView extends React.Component{
itemIdex += 100
this.setState({itemIdex: itemIdex})
}
this.props.scrollPage();
this.props.onPageScroll();
}
onMoveToggle = () => {