@@ -148,12 +148,6 @@ const PaginationControl = (props) => {
|
||||
)}
|
||||
</div>
|
||||
<div className="govuk-grid-column-one-quarter paginationNext">
|
||||
{/* {"current page state: " +
|
||||
props.currentView.currentPage}{" "}
|
||||
<br />
|
||||
{"current page: " + currentPage} <br />
|
||||
{"total pages: " + pagesCount}
|
||||
<br /> */}
|
||||
{props.currentView.currentPage < pagesCount ? (
|
||||
<span
|
||||
className="govuk-body govuk-link govuk-!-font-weight-bold govuk-link--no-underline activePaginationItem rightTextButton"
|
||||
|
||||
@@ -80,8 +80,6 @@ const PaginationControl = (props) => {
|
||||
};
|
||||
|
||||
const paginationArray = paginationNumbers(currentPage, pagesCount);
|
||||
|
||||
console.log(props);
|
||||
return (
|
||||
<>
|
||||
{" "}
|
||||
@@ -150,21 +148,14 @@ const PaginationControl = (props) => {
|
||||
)}
|
||||
</div>
|
||||
<div className="govuk-grid-column-one-quarter paginationNext">
|
||||
{/* {"current page state: " +
|
||||
props.currentView.currentPage}{" "}
|
||||
<br />
|
||||
{"current page: " + currentPage} <br />
|
||||
{"total pages: " + pagesCount}
|
||||
<br />
|
||||
{/* {thisCurrentPage != currentPage &&
|
||||
setThisCurrentPage(currentPage)} */}{" "}
|
||||
{props.currentView.currentPage < pagesCount ? (
|
||||
<span
|
||||
className="govuk-body govuk-link govuk-!-font-weight-bold govuk-link--no-underline activePaginationItem rightTextButton"
|
||||
onClick={() => {
|
||||
spinnerState(),
|
||||
setCurrentPage(
|
||||
props.currenView.currentPage + 1
|
||||
props.currentView.currentPage +
|
||||
1
|
||||
),
|
||||
getSearchPageResults(
|
||||
props.currentView.currentPage +
|
||||
|
||||
Reference in New Issue
Block a user