This commit is contained in:
parent
a6b99219e1
commit
04e0898b3c
@ -174,6 +174,22 @@ export default function Pagination({
|
|||||||
|
|
||||||
{renderPageNumbers()}
|
{renderPageNumbers()}
|
||||||
|
|
||||||
|
{!mobilePagination && currentPage < totalPages && totalPages - currentPage > 2 && (
|
||||||
|
<>
|
||||||
|
<PaginationItemWrapper key="ellipsis-start" isLoadingPage={isLoading}>
|
||||||
|
<PaginationEllipsis />
|
||||||
|
</PaginationItemWrapper>
|
||||||
|
<PaginationItemWrapper key="end" isLoadingPage={isLoading}>
|
||||||
|
<PaginationLink
|
||||||
|
href={generatePageUrl ? generatePageUrl(totalPages) : ""}
|
||||||
|
onClick={e => handleLinkClick(totalPages, e)}
|
||||||
|
>
|
||||||
|
{totalPages}
|
||||||
|
</PaginationLink>
|
||||||
|
</PaginationItemWrapper>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Next button - disabled on the last page */}
|
{/* Next button - disabled on the last page */}
|
||||||
<PaginationItemWrapper isLoadingPage={isLoading}>
|
<PaginationItemWrapper isLoadingPage={isLoading}>
|
||||||
<PaginationNext
|
<PaginationNext
|
||||||
|
Reference in New Issue
Block a user