Skip to content

Commit

Permalink
fix: button pagination gh discussions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcklingen committed Sep 23, 2024
1 parent 114c773 commit e72a181
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/gh-discussions/GhDiscussionsPreviewInternal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ const GhDiscussionsPreviewInternal = ({
<PaginationPrevious
size="xs"
onClick={() => setCurrentPage((prev) => Math.max(1, prev - 1))}
className="cursor-pointer select-none"
/>
</PaginationItem>
<div className="hidden sm:flex gap-1 items-center">
Expand All @@ -205,6 +206,7 @@ const GhDiscussionsPreviewInternal = ({
onClick={() => setCurrentPage(pageNumber)}
isActive={currentPage === pageNumber}
size="xs"
className="cursor-pointer select-none"
>
{pageNumber}
</PaginationLink>
Expand All @@ -218,6 +220,7 @@ const GhDiscussionsPreviewInternal = ({
onClick={() =>
setCurrentPage((prev) => Math.min(totalPages, prev + 1))
}
className="cursor-pointer select-none"
/>
</PaginationItem>
</PaginationContent>
Expand Down

0 comments on commit e72a181

Please sign in to comment.