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