Skip to content

Commit

Permalink
sdp-tech#559 fix : pagination navigate error
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsikkk committed Nov 6, 2023
1 parent 0ab6617 commit 6aa0fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/Pagination.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Pagination({ total, limit, page, setPage }) {
return (
<StyledLink
key={page}
onClick={(e)=>{ setPage(e.target.textContent)}}
onClick={(e)=>{ setPage(parseInt(e.target.textContent))}}
aria-current={currentPage === page ? "page" : null}
>
{page}
Expand Down

0 comments on commit 6aa0fca

Please sign in to comment.