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