mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 15:36:50 +00:00
Pagination Update
This commit is contained in:
parent
05e61ae428
commit
5b8c102ed4
@ -73,7 +73,7 @@ export default function SitesPage({ username, name }: SitesPageProps) {
|
||||
<Sites key={site.id} id={site.id} name={site.name} description={site.description} networks={site.networks} />
|
||||
))}
|
||||
</div>
|
||||
|
||||
|
||||
<Pagination
|
||||
currentPage={currentPage}
|
||||
totalItems={total}
|
||||
|
||||
@ -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