mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-18 07:56:57 +00:00
Pagination Update
This commit is contained in:
parent
05e61ae428
commit
5b8c102ed4
@ -13,23 +13,23 @@ export default function Pagination({
|
||||
|
||||
return (
|
||||
<div className="flex justify-center pt-4">
|
||||
<div className="join">
|
||||
<button
|
||||
className="join-item btn"
|
||||
onClick={() => onPageChange(currentPage - 1)}
|
||||
disabled={currentPage === 1}
|
||||
>
|
||||
«
|
||||
</button>
|
||||
<button className="join-item btn">Page {currentPage}</button>
|
||||
<button
|
||||
className="join-item btn"
|
||||
onClick={() => onPageChange(currentPage + 1)}
|
||||
disabled={currentPage === totalPages}
|
||||
>
|
||||
»
|
||||
</button>
|
||||
<div className="join">
|
||||
<button
|
||||
className="join-item btn"
|
||||
onClick={() => onPageChange(currentPage - 1)}
|
||||
disabled={currentPage === 1}
|
||||
>
|
||||
«
|
||||
</button>
|
||||
<button className="join-item btn">Page {currentPage}</button>
|
||||
<button
|
||||
className="join-item btn"
|
||||
onClick={() => onPageChange(currentPage + 1)}
|
||||
disabled={currentPage === totalPages}
|
||||
>
|
||||
»
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user