Skip to content

Commit

Permalink
🔨fix: pagination herf (#2307)
Browse files Browse the repository at this point in the history
Co-authored-by: kkkycocho <[email protected]>
Co-authored-by: jojoo-eth <[email protected]>
  • Loading branch information
3 people authored Jul 29, 2024
1 parent a2c4407 commit 1f8e803
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions infra/rooch-portal/src/components/custom-pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const PaginationComponent: React.FC<PaginationComponentProps> = ({
<PaginationContent>
<PaginationItem>
<PaginationPrevious
href="#"
onClick={() => currentPage > 0 && onPageChange(currentPage - 1)}
className={`cursor-pointer border-none hover:bg-inherit ${
currentPage <= 0 ? 'text-gray-500 cursor-not-allowed hover:text-gray-500' : ''
Expand All @@ -36,7 +35,6 @@ const PaginationComponent: React.FC<PaginationComponentProps> = ({
</PaginationItem>
<PaginationItem>
<PaginationLink
href="#"
onClick={() => onPageChange(currentPage)}
isActive={true}
className="cursor-pointer"
Expand All @@ -46,7 +44,6 @@ const PaginationComponent: React.FC<PaginationComponentProps> = ({
</PaginationItem>
<PaginationItem>
<PaginationNext
href="#"
onClick={() => hasNextPage && onPageChange(currentPage + 1)}
className={`cursor-pointer border-none hover:bg-inherit ${
!hasNextPage ? 'text-gray-500 cursor-not-allowed hover:text-gray-500' : ''
Expand Down

0 comments on commit 1f8e803

Please sign in to comment.