Skip to content

Commit

Permalink
fix: update the group update modal
Browse files Browse the repository at this point in the history
  • Loading branch information
chalabi2 committed Jan 8, 2025
1 parent 12555f6 commit 657e07c
Show file tree
Hide file tree
Showing 2 changed files with 315 additions and 226 deletions.
7 changes: 1 addition & 6 deletions components/groups/components/myGroups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,9 @@ export function YourGroups({
return 'Untitled Group'.toLowerCase().includes(searchTerm.toLowerCase());
}
});

console.log(groups);
const totalPages = Math.ceil(filteredGroups.length / pageSize.groupInfo);
const paginatedGroups = filteredGroups.slice(
(currentPage - 1) * pageSize.groupInfo,
currentPage * pageSize.groupInfo
);

const totalPagesGroupEntries = Math.ceil(filteredGroups.length / pageSize.groupEntries);
const paginatedGroupEntries = filteredGroups.slice(
(currentPage - 1) * pageSize.groupEntries,
currentPage * pageSize.groupEntries
Expand Down
Loading

0 comments on commit 657e07c

Please sign in to comment.