This commit is contained in:
User
2025-05-03 14:06:32 -04:00
parent 0d2b67ab57
commit 7837e7db0c
3 changed files with 86 additions and 85 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') && 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') && h.url !== null && <PaginationNext href={ h.url } only={['histories']} isActive={ h.active } /> }
{ h.label.includes('Previous') && <PaginationPrevious href={ h.url !== null ? h.url : "#" } only={['histories']} isActive={ h.active } /> }
{ !h.label.includes('Previous') && !h.label.includes('Next') && <PaginationLink href={ h.url !== null ? h.url : "#" } only={['histories']} isActive={ h.active }>{ h.label }</PaginationLink> }
{ h.label.includes('Next') && <PaginationNext href={ h.url !== null ? h.url : "#" } only={['histories']} isActive={ h.active } /> }
</PaginationItem>
) ) }
</PaginationContent>