1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 22:01:06 +00:00

[shared with me] mobile: improvement (#3861)

This commit is contained in:
llj
2019-07-17 17:37:39 +08:00
committed by Daniel Pan
parent 694900e82b
commit cfc5f71417
5 changed files with 95 additions and 48 deletions

View File

@@ -7,7 +7,7 @@ const propTypes = {
toggleDialog: PropTypes.func.isRequired,
sortBy: PropTypes.string.isRequired,
sortOrder: PropTypes.string.isRequired,
sortList: PropTypes.func.isRequired
sortItems: PropTypes.func.isRequired
};
class SortOptions extends React.Component {
@@ -38,7 +38,7 @@ class SortOptions extends React.Component {
});
const [sortBy, sortOrder] = e.target.value.split('-');
this.props.sortList(sortBy, sortOrder);
this.props.sortItems(sortBy, sortOrder);
this.props.toggleDialog();
}