This commit is contained in:
User
2025-05-01 22:40:17 -04:00
parent fb23c3b001
commit 0d2b67ab57
7 changed files with 93 additions and 83 deletions

View File

@@ -125,9 +125,9 @@ export default function Histories({ auth, histories }) {
<PaginationContent>
{ histories.links.map((h, i) => (
<PaginationItem key={ i }>
{ h.label.includes('Previous') && <PaginationPrevious href={ h.url } only={['histories']} isActive={ h.active } /> }
{ h.label.includes('Previous') && h.url !== null && <PaginationPrevious href={ h.url } only={['histories']} isActive={ h.active } /> }
{ !h.label.includes('Previous') && !h.label.includes('Next') && <PaginationLink href={ h.url } only={['histories']} isActive={ h.active }>{ h.label }</PaginationLink> }
{ h.label.includes('Next') && <PaginationNext href={ h.url } only={['histories']} isActive={ h.active } /> }
{ h.label.includes('Next') && h.url !== null && <PaginationNext href={ h.url } only={['histories']} isActive={ h.active } /> }
</PaginationItem>
) ) }
</PaginationContent>