Skip to content

Commit

Permalink
fix: fixed keyboard navigation for pagination (#2073)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline authored Nov 8, 2023
1 parent cbbb8a2 commit e1f3804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/molecules/Pagination/pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Pagination = ({
{pages.map((page, index) => {
return (
index < pageSize && (
<div
<button
key={index}
onClick={() => handleSelected(page)}
className={`${
Expand All @@ -66,7 +66,7 @@ const Pagination = ({
} cursor-pointer text-light-slate-11 transition text-sm px-[13px] py-[6px] rounded-lg `}
>
{page}
</div>
</button>
)
);
})}
Expand Down

0 comments on commit e1f3804

Please sign in to comment.