Remove comments pagination

This commit is contained in:
riggraz
2019-09-17 15:03:25 +02:00
parent b40ddfd543
commit 476f720119
8 changed files with 7 additions and 37 deletions

View File

@@ -10,13 +10,11 @@ const mapStateToProps = (state: State) => ({
comments: state.currentPost.comments.items,
areLoading: state.currentPost.comments.areLoading,
error: state.currentPost.comments.error,
page: state.currentPost.comments.page,
haveMore: state.currentPost.comments.haveMore,
});
const mapDispatchToProps = (dispatch) => ({
requestComments(postId: number, page: number = 1) {
dispatch(requestComments(postId, page));
requestComments(postId: number) {
dispatch(requestComments(postId));
},
});