Skip to content

Commit

Permalink
fix: add pointer cursor on hover for pagination buttons in tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
amartripathi0 authored and devsargam committed Sep 19, 2024
1 parent 603c372 commit 9f9e1d9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/web/components/Tracks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ export const Tracks = ({ tracks, categories }: TracksWithCategoriesProps) => {
<div className="flex justify-end items-end mt-4 w-full">
<Pagination>
<PaginationContent>
<PaginationItem>
<PaginationItem className="cursor-pointer">
<PaginationPrevious
onClick={() => {
setCurrentPage((prev) => Math.max(prev - 1, 1));
}}
/>
</PaginationItem>
{Array.from({ length: totalPages }).map((_, index) => (
<PaginationItem key={index}>
<PaginationItem key={index} className="cursor-pointer">
<PaginationLink onClick={() => setCurrentPage(index + 1)}>{index + 1}</PaginationLink>
</PaginationItem>
))}
Expand All @@ -248,7 +248,9 @@ export const Tracks = ({ tracks, categories }: TracksWithCategoriesProps) => {
</>
)}

<PaginationItem>
<PaginationItem
className="cursor-pointer"
>
<PaginationNext
onClick={() => {
setCurrentPage((prev) => Math.min(prev + 1, totalPages));
Expand Down

0 comments on commit 9f9e1d9

Please sign in to comment.