File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ let isLoading = false;
22
22
let currentPage = 1 ;
23
23
let showUser = 0 ;
24
24
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
+ */
25
28
// usersData[activeTab] = await getUsers(activeTab);
26
29
27
30
export const fetchUsers = async ( tabId , page = 1 ) => {
Original file line number Diff line number Diff line change @@ -45,9 +45,13 @@ export const UsersSection = ({
45
45
src : user ?. picture ?. url ?? dummyPicture ,
46
46
class : 'user_image' ,
47
47
} ) ,
48
+ /* will uncomment this once we have actual paginated data from the API */
49
+
48
50
// createElement('span', {}, [
49
51
// user.first_name + ' ' + user.last_name + user.username,
50
52
// ]),
53
+
54
+ /* will remove this once we have actual paginated data from the API */
51
55
createElement ( 'span' , { } , [ user . username ] ) ,
52
56
] ,
53
57
) ;
You can’t perform that action at this time.
0 commit comments