-
+

{router.locale - {

+ +
+ {router.locale{" "} +
+ {props.accountDetails.accountDetails.firstname}{" "} + {props.accountDetails.accountDetails.lastname} +
+ +
diff --git a/components/servicebanner.js b/components/servicebanner.js index d963c7c3..0ae55c1a 100644 --- a/components/servicebanner.js +++ b/components/servicebanner.js @@ -9,6 +9,7 @@ export default function ServiceBanner() {

Planning casework - { + /> */}

); diff --git a/locales/cy/common.json b/locales/cy/common.json index d717e759..0d21bb48 100644 --- a/locales/cy/common.json +++ b/locales/cy/common.json @@ -17,7 +17,7 @@ "search-button": "Chwilio", "submit-and-start": "Cyflwyno a dechrau'r cwrs", "footer-terms-conditions-link-label": "Telerau ac amodau", - "footer-terms-conditions-link": "/telerau-ac-amodau", + "footer-terms-conditions-link": "https://llyw.cymru/telerau-ac-amodau", "footer-privacy-link-label": "Preifatrwydd", "footer-privacy-link": "/preifatrwydd", "footer-cookies-link": "Cwcis", diff --git a/locales/en/common.json b/locales/en/common.json index fd520e90..3d26ccf2 100644 --- a/locales/en/common.json +++ b/locales/en/common.json @@ -17,7 +17,7 @@ "search-button": "Search", "submit-and-start": "Submit and start course", "footer-terms-conditions-link-label": "Terms and conditions", - "footer-terms-conditions-link": "/terms-and-conditions", + "footer-terms-conditions-link": "https://gov.wales/terms-and-conditions", "footer-privacy-link-label": "Privacy", "footer-privacy-link": "/privacy", "footer-cookies-link": "Cookies", 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; diff --git a/pages/myportal/index.js b/pages/myportal/index.js index e5081624..d7da7060 100644 --- a/pages/myportal/index.js +++ b/pages/myportal/index.js @@ -52,6 +52,7 @@ const Home = (props) => { myRepresentations, watchedCases, awaitingSubmission, + accountDetails, } = props; let { t, lang } = useTranslation(); @@ -137,6 +138,7 @@ const Home = (props) => { myRepresentations={myRepresentations} watchedCases={watchedCases} awaitingSubmission={awaitingSubmission} + accountDetails={accountDetails} />