included emdash in doc upload validation
This commit is contained in:
@@ -13,7 +13,7 @@ const PaginationControl = (props) => {
|
||||
currentPage,
|
||||
spinnerState,
|
||||
getSearchPageResults,
|
||||
setCurrentPage,
|
||||
setCurrentPage
|
||||
} = props;
|
||||
let { t } = useTranslation();
|
||||
|
||||
@@ -47,7 +47,7 @@ const PaginationControl = (props) => {
|
||||
|
||||
const range = {
|
||||
start: Math.round(currentPage - delta / 2),
|
||||
end: Math.round(currentPage + delta / 2),
|
||||
end: Math.round(currentPage + delta / 2)
|
||||
};
|
||||
|
||||
if (range.start - 1 === 1 || range.end + 1 === pageCount) {
|
||||
@@ -92,7 +92,7 @@ const PaginationControl = (props) => {
|
||||
<button
|
||||
className="govuk-body govuk-link govuk-!-font-weight-bold govuk-link--no-underline activePaginationItem leftTextButton"
|
||||
onClick={() => {
|
||||
spinnerState(),
|
||||
(spinnerState(),
|
||||
setCurrentPage(
|
||||
props.currentView.currentPage -
|
||||
1
|
||||
@@ -102,7 +102,7 @@ const PaginationControl = (props) => {
|
||||
1,
|
||||
orderBy,
|
||||
fieldSort
|
||||
);
|
||||
));
|
||||
}}
|
||||
>
|
||||
{t("common:previous-link-button")}
|
||||
@@ -134,13 +134,13 @@ const PaginationControl = (props) => {
|
||||
className="govuk-body govuk-link govuk-!-padding-2 govuk-!-font-weight-bold govuk-link--no-underline activePaginationItem"
|
||||
key={i}
|
||||
onClick={() => {
|
||||
spinnerState(),
|
||||
(spinnerState(),
|
||||
setCurrentPage(e),
|
||||
getSearchPageResults(
|
||||
e,
|
||||
orderBy,
|
||||
fieldSort
|
||||
);
|
||||
));
|
||||
}}
|
||||
>
|
||||
{e}
|
||||
@@ -153,7 +153,7 @@ const PaginationControl = (props) => {
|
||||
<button
|
||||
className="govuk-body govuk-link govuk-!-font-weight-bold govuk-link--no-underline activePaginationItem rightTextButton"
|
||||
onClick={() => {
|
||||
spinnerState(),
|
||||
(spinnerState(),
|
||||
setCurrentPage(
|
||||
props.currentView.currentPage +
|
||||
1
|
||||
@@ -163,7 +163,7 @@ const PaginationControl = (props) => {
|
||||
1,
|
||||
orderBy,
|
||||
fieldSort
|
||||
);
|
||||
));
|
||||
}}
|
||||
>
|
||||
{t("common:next-link-button")}
|
||||
@@ -177,8 +177,9 @@ const PaginationControl = (props) => {
|
||||
</div>
|
||||
</div>
|
||||
<div className="govuk-body-s mobilePageCount">
|
||||
{t("common:pages-label")} {currentPage}{" "}
|
||||
{t("common:of-label")} {pagesCount}
|
||||
{t("common:pages-label")}{" "}
|
||||
{props.currentView.currentPage} {t("common:of-label")}{" "}
|
||||
{pagesCount}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
@@ -188,7 +189,7 @@ const PaginationControl = (props) => {
|
||||
|
||||
const mapStateToProps = (state) => {
|
||||
return {
|
||||
currentView: state.currentView,
|
||||
currentView: state.currentView
|
||||
};
|
||||
};
|
||||
|
||||
@@ -196,7 +197,7 @@ const mapDispatchToProps = (dispatch) => {
|
||||
return {
|
||||
setCurrentPage: (currentPage) => {
|
||||
dispatch(setCurrentPage(currentPage));
|
||||
},
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user