feat: add support for pagination on learner page [BD-38] [TNL-9844] (#129)

Adds support for pagination on the learners page, including the learners list, the post, comments and responses lists.
This commit is contained in:
Kshitij Sobti
2022-04-20 16:40:27 +05:30
committed by GitHub
parent 36ff2fad27
commit e8a3e4eaa8
11 changed files with 144 additions and 73 deletions

View File

@@ -132,12 +132,13 @@ export async function deleteComment(commentId) {
* }
*/
export async function getUserComments(courseId, username) {
export async function getUserComments(courseId, username, { page }) {
const { data } = await getAuthenticatedHttpClient()
.get(commentsApiUrl, {
params: {
course_id: courseId,
username,
page,
},
});
return data;