Skip to content

Commit

Permalink
AB#21667
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefwint committed Oct 2, 2024
1 parent 1ef5df4 commit adc4ea1
Show file tree
Hide file tree
Showing 3 changed files with 346 additions and 374 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"dependencies": {
"@headlessui/react": "^1.7.17",
"@pzh-ui/components": "^0.0.554",
"@pzh-ui/components": "^0.0.572",
"@pzh-ui/config": "^0.0.70",
"@pzh-ui/css": "^0.0.99",
"@pzh-ui/icons": "^0.0.63",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ const TabContent = ({ type, activeTab }: TabContentProps) => {
(sortBy?.[0]?.id as ModuleSortColumn) || 'Modified_Date',
sort_order: sortBy?.[0]?.desc ? 'DESC' : 'ASC',
limit: PAGE_LIMIT,
offset: (currPage - 1) * PAGE_LIMIT,
offset:
((type === 'archive' ? pageIndex : currPage) - 1) * PAGE_LIMIT,
},
{
query: {
Expand Down Expand Up @@ -179,7 +180,7 @@ const TabContent = ({ type, activeTab }: TabContentProps) => {
{!!modules?.total &&
!!modules?.limit &&
modules.total > modules.limit && (
<div className="mt-8 flex justify-center">
<div className="mt-8">
<Pagination
onPageChange={setCurrPage}
current={currPage}
Expand Down
Loading

0 comments on commit adc4ea1

Please sign in to comment.