Skip to content

Commit 3c7dde3

Browse files
Ishan VeerIshan Veer
authored andcommitted
Added comments for a few fucntions
1 parent 2155129 commit 3c7dde3

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

users/discord/App.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ let isLoading = false;
2222
let currentPage = 1;
2323
let showUser = 0;
2424

25+
/* this is the original function for fetching user data from the API, will remove it once
26+
the API pagination issue is resolved. Currently testing pagination using mock data.
27+
*/
2528
// usersData[activeTab] = await getUsers(activeTab);
2629

2730
export const fetchUsers = async (tabId, page = 1) => {

users/discord/components/UsersSection.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ export const UsersSection = ({
4545
src: user?.picture?.url ?? dummyPicture,
4646
class: 'user_image',
4747
}),
48+
/* will uncomment this once we have actual paginated data from the API */
49+
4850
// createElement('span', {}, [
4951
// user.first_name + ' ' + user.last_name + user.username,
5052
// ]),
53+
54+
/* will remove this once we have actual paginated data from the API */
5155
createElement('span', {}, [user.username]),
5256
],
5357
);

0 commit comments

Comments
 (0)