+3
-3
@@ -22,9 +22,9 @@ const FourOhFour = (props) => {
|
|||||||
<CookieBanner />
|
<CookieBanner />
|
||||||
<Header courseName={t("common:service-name")} />
|
<Header courseName={t("common:service-name")} />
|
||||||
<div className="govuk-width-container govuk-!-padding-bottom-9">
|
<div className="govuk-width-container govuk-!-padding-bottom-9">
|
||||||
<main class="govuk-main-wrapper govuk-!-padding-top-9 govuk-!-padding-bottom-9">
|
<main className="govuk-main-wrapper govuk-!-padding-top-9 govuk-!-padding-bottom-9">
|
||||||
<div class="govuk-grid-row">
|
<div className="govuk-grid-row">
|
||||||
<div class="govuk-grid-column-two-thirds ">
|
<div className="govuk-grid-column-two-thirds ">
|
||||||
<h1>404 - Page Not Found</h1>
|
<h1>404 - Page Not Found</h1>
|
||||||
<Link href="/">
|
<Link href="/">
|
||||||
<a>Go back home</a>
|
<a>Go back home</a>
|
||||||
|
|||||||
@@ -41,40 +41,6 @@ const Home = (props) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
// export const getServerSideProps = wrapper.getServerSideProps(
|
|
||||||
// async ({ locale, store, req, res }) => {
|
|
||||||
// const token = await getToken();
|
|
||||||
// let accessToken = token.access_token;
|
|
||||||
|
|
||||||
// const apiRoot = process.browser ? window.API_ROOT : process.env.API_ROOT;
|
|
||||||
|
|
||||||
// const [pages, footerLinks, courseListContent] = await Promise.all([
|
|
||||||
// await getPages(accessToken, locale),
|
|
||||||
// await getFooterLinks(accessToken, locale),
|
|
||||||
// await getCourseList(accessToken, locale),
|
|
||||||
// ]);
|
|
||||||
// //const courseID = await getCourseID
|
|
||||||
// store.dispatch(setApiRoot(apiRoot));
|
|
||||||
// store.dispatch(setPages(pages));
|
|
||||||
// store.dispatch(setFooterLinks(footerLinks));
|
|
||||||
// store.dispatch(setCourseListContent(courseListContent));
|
|
||||||
// }
|
|
||||||
// );
|
|
||||||
|
|
||||||
// const mapStateToProps = (state) => {
|
|
||||||
// //console.log(state);
|
|
||||||
|
|
||||||
// return {
|
|
||||||
// apiroot: state.apiroot,
|
|
||||||
// courseListContent: state.courseListContent.courseListContent,
|
|
||||||
// pages: state.pages.pages,
|
|
||||||
// footerLinks: state.footerLinks.footerLinks,
|
|
||||||
// regions: state.regions,
|
|
||||||
// sectors: state.sectors,
|
|
||||||
// form: state.form,
|
|
||||||
// };
|
|
||||||
// };
|
|
||||||
|
|
||||||
const mapStateToProps = (state) => {
|
const mapStateToProps = (state) => {
|
||||||
return {
|
return {
|
||||||
search: state.search,
|
search: state.search,
|
||||||
|
|||||||
Reference in New Issue
Block a user