0.1.6A
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user