From 6f37064eba95fab288b60e80d33f7b0079ed363f Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Tue, 30 Nov 2021 08:25:08 +0000 Subject: [PATCH] fixed apostrophe encoded error and removed 500 page as not needed --- components/footerDocs/privacy_cy.js | 6 ++-- components/footerDocs/privacy_en.js | 6 ++-- pages/500.js | 52 ----------------------------- 3 files changed, 6 insertions(+), 58 deletions(-) delete mode 100644 pages/500.js diff --git a/components/footerDocs/privacy_cy.js b/components/footerDocs/privacy_cy.js index 15f2dfcf..1a60d7c6 100644 --- a/components/footerDocs/privacy_cy.js +++ b/components/footerDocs/privacy_cy.js @@ -49,8 +49,8 @@ export default function PrivacyCY() { How we process any personal information including special category data you have voluntarily provided to us relating directly to you or any other third-party - individual's information you may have provided relating - to PEDW casework. + individual's information you may have provided + relating to PEDW casework.
  • Planning and Environment Decisions Wales handle a @@ -207,7 +207,7 @@ export default function PrivacyCY() { link:

    - Information Commissioner's Office
    + Information Commissioner's Office
    1 Wycliffe House
    Water Lane, Wilmslow
    diff --git a/components/footerDocs/privacy_en.js b/components/footerDocs/privacy_en.js index 49305d34..faa90e2a 100644 --- a/components/footerDocs/privacy_en.js +++ b/components/footerDocs/privacy_en.js @@ -49,8 +49,8 @@ export default function PrivacyEN() { How we process any personal information including special category data you have voluntarily provided to us relating directly to you or any other third-party - individual's information you may have provided relating - to PEDW casework. + individual's information you may have provided + relating to PEDW casework.

  • Planning and Environment Decisions Wales handle a @@ -207,7 +207,7 @@ export default function PrivacyEN() { link:

    - Information Commissioner's Office
    + Information Commissioner's Office
    1 Wycliffe House
    Water Lane, Wilmslow
    diff --git a/pages/500.js b/pages/500.js deleted file mode 100644 index 974cdb3d..00000000 --- a/pages/500.js +++ /dev/null @@ -1,52 +0,0 @@ -import Link from "next/link"; -import Head from "next/head"; -import Header from "../components/header"; -import Banner from "../components/banner"; -import CookieBanner from "../components/cookieBanner"; -import useTranslation from "next-translate/useTranslation"; -import Footer from "../components/footer"; - -function Error({ statusCode }, props) { - let { t, lang } = useTranslation(); - const { footerLinks, pages } = props; - - return ( -

    - - - {t("case:page-title")} - {t("common:service-name")} - - -
    - -
    -
    -
    -
    -
    -

    {t("common:error-page-title")}

    -

    - {statusCode - ? `An error ${statusCode} occurred on server` - : t("common:error-page-message")} -

    - - Go back home - -
    -
    -
    -
    -
    -
    - ); -} - -Error.getInitialProps = ({ res, err }) => { - const statusCode = res ? res.statusCode : err ? err.statusCode : 404; - console.log(res, err); - return { statusCode }; -}; - -export default Error;