Skip to content

Commit

Permalink
fixed paginator
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Aug 22, 2024
1 parent 495f996 commit 70fee57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/modules/components/paginator.module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const Paginator = ({ total_count, take, onChange }: PaginatorProps) => {

return _display ? <div className={Styles.container}>
{_pages.length > 0 && <>
<img alt="" className={Styles.page} onClick={() => _setPage(0)} src="/static/icons/arrow.svg" />
<img alt="" className={Styles.page} onClick={() => _setPage(last => Math.max(0, last - 1))} src="/static/icons/arrow.svg" />
{_pages}
<img alt="" className={Styles.page} style={{ transform: "rotate(180deg)" }} onClick={() => _setPage(last => Math.min(last + 1, Math.ceil(_totalCount / _take) - 1))} src="/static/icons/arrow.svg" />
</>
Expand Down

0 comments on commit 70fee57

Please sign in to comment.