added mock call for case view
This commit is contained in:
+37
-8
@@ -1,13 +1,42 @@
|
||||
// 404.js
|
||||
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";
|
||||
|
||||
const FourOhFour = (props) => {
|
||||
let { t, lang } = useTranslation();
|
||||
const { footerLinks, pages } = props;
|
||||
|
||||
export default function FourOhFour() {
|
||||
return (
|
||||
<>
|
||||
<h1>404 - Page Not Found</h1>
|
||||
<Link href="/">
|
||||
<a>Go back home</a>
|
||||
</Link>
|
||||
</>
|
||||
<div>
|
||||
<Head>
|
||||
<title>
|
||||
{t("case:page-title")} - {t("common:service-name")}
|
||||
</title>
|
||||
</Head>
|
||||
<div id="page_wrapper">
|
||||
<CookieBanner />
|
||||
<Header courseName={t("common:service-name")} />
|
||||
<div className="govuk-width-container govuk-!-padding-bottom-9">
|
||||
<main class="govuk-main-wrapper govuk-!-padding-top-9 govuk-!-padding-bottom-9">
|
||||
<div class="govuk-grid-row">
|
||||
<div class="govuk-grid-column-two-thirds ">
|
||||
<h1>404 - Page Not Found</h1>
|
||||
<Link href="/">
|
||||
<a>Go back home</a>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
<Footer footerLinks={footerLinks} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export default FourOhFour;
|
||||
|
||||
@@ -11,6 +11,33 @@ const ApiResponse = (req, res) => {
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00017-B8X7N0",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue": "",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary": "",
|
||||
"caseOfficer": "",
|
||||
"procedure": "",
|
||||
"status": "",
|
||||
"decision": "",
|
||||
"outcome_document": "",
|
||||
"caseLinkStatus": "",
|
||||
"linkedCases": "",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "",
|
||||
"questionnaireDue": "",
|
||||
"statementsDue": "",
|
||||
"interestedPartyCommentsdue": "",
|
||||
"appellantLPAFinalCommentsdue": "",
|
||||
"inquiryEvidenceDue": "",
|
||||
"eventDate": "",
|
||||
"decisionDate": "",
|
||||
},
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
@@ -21,6 +48,34 @@ const ApiResponse = (req, res) => {
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00016-Y9K9Q0",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary": "",
|
||||
"caseOfficer": "",
|
||||
"procedure": "",
|
||||
"status": "",
|
||||
"decision": "",
|
||||
"outcome_document": "",
|
||||
"caseLinkStatus": "",
|
||||
"linkedCases": "",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "",
|
||||
"questionnaireDue": "",
|
||||
"statementsDue": "",
|
||||
"interestedPartyCommentsdue": "",
|
||||
"appellantLPAFinalCommentsdue": "",
|
||||
"inquiryEvidenceDue": "",
|
||||
"eventDate": "",
|
||||
"decisionDate": "",
|
||||
},
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
@@ -31,6 +86,34 @@ const ApiResponse = (req, res) => {
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00011-K1N0J8",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary": "",
|
||||
"caseOfficer": "",
|
||||
"procedure": "",
|
||||
"status": "",
|
||||
"decision": "",
|
||||
"outcome_document": "",
|
||||
"caseLinkStatus": "",
|
||||
"linkedCases": "",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "",
|
||||
"questionnaireDue": "",
|
||||
"statementsDue": "",
|
||||
"interestedPartyCommentsdue": "",
|
||||
"appellantLPAFinalCommentsdue": "",
|
||||
"inquiryEvidenceDue": "",
|
||||
"eventDate": "",
|
||||
"decisionDate": "",
|
||||
},
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
@@ -41,6 +124,34 @@ const ApiResponse = (req, res) => {
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00015-L7J9H1",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary": "",
|
||||
"caseOfficer": "",
|
||||
"procedure": "",
|
||||
"status": "",
|
||||
"decision": "",
|
||||
"outcome_document": "",
|
||||
"caseLinkStatus": "",
|
||||
"linkedCases": "",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "",
|
||||
"questionnaireDue": "",
|
||||
"statementsDue": "",
|
||||
"interestedPartyCommentsdue": "",
|
||||
"appellantLPAFinalCommentsdue": "",
|
||||
"inquiryEvidenceDue": "",
|
||||
"eventDate": "",
|
||||
"decisionDate": "",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
@@ -3,7 +3,7 @@ const ApiResponse = (req, res) => {
|
||||
res.json({
|
||||
"value": [
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"@odata.etag": "W547952",
|
||||
"lpaname": "Vale of Glamorgan Council",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "21 Courtenay Road",
|
||||
@@ -17,9 +17,32 @@ const ApiResponse = (req, res) => {
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary":
|
||||
"Erection of a two-storey chalet style detached dwelling",
|
||||
"caseOfficer": "Neale Oliver",
|
||||
"procedure": "Written representations",
|
||||
"status": "In progress",
|
||||
"decision": "Allowed",
|
||||
"outcome_document": "23424Appeal Decision.pdf",
|
||||
"caseLinkStatus": "not linked",
|
||||
"linkedCases": "none",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "26-May-21",
|
||||
"questionnaireDue": "02-Jun-21",
|
||||
"statementsDue": "30-Jun-21",
|
||||
"interestedPartyCommentsdue": "30-Jun-21",
|
||||
"appellantLPAFinalCommentsdue": "4-Jul-21",
|
||||
"inquiryEvidenceDue": "N/A",
|
||||
"eventDate": "Date arranged",
|
||||
"decisionDate": "Not yet decided",
|
||||
},
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"@odata.etag": "W547952",
|
||||
"lpaname": "Bridgend CBC",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "17 Colin Way",
|
||||
@@ -33,10 +56,33 @@ const ApiResponse = (req, res) => {
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary":
|
||||
"Erection of a two-storey chalet style detached dwelling",
|
||||
"caseOfficer": "Neale Oliver",
|
||||
"procedure": "Written representations",
|
||||
"status": "In progress",
|
||||
"decision": "Allowed",
|
||||
"outcome_document": "23424Appeal Decision.pdf",
|
||||
"caseLinkStatus": "not linked",
|
||||
"linkedCases": "none",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "26-May-21",
|
||||
"questionnaireDue": "02-Jun-21",
|
||||
"statementsDue": "30-Jun-21",
|
||||
"interestedPartyCommentsdue": "30-Jun-21",
|
||||
"appellantLPAFinalCommentsdue": "4-Jul-21",
|
||||
"inquiryEvidenceDue": "N/A",
|
||||
"eventDate": "Date arranged",
|
||||
"decisionDate": "Not yet decided",
|
||||
},
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Cardiff County Council Planning (A)",
|
||||
"@odata.etag": "W547952",
|
||||
"lpaname": "Cardiff County Council Planning (A)",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "120 Severn Grove",
|
||||
"town": "Cardiff",
|
||||
@@ -49,10 +95,33 @@ const ApiResponse = (req, res) => {
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary":
|
||||
"Erection of a two-storey chalet style detached dwelling",
|
||||
"caseOfficer": "Neale Oliver",
|
||||
"procedure": "Written representations",
|
||||
"status": "In progress",
|
||||
"decision": "Allowed",
|
||||
"outcome_document": "23424Appeal Decision.pdf",
|
||||
"caseLinkStatus": "not linked",
|
||||
"linkedCases": "none",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "26-May-21",
|
||||
"questionnaireDue": "02-Jun-21",
|
||||
"statementsDue": "30-Jun-21",
|
||||
"interestedPartyCommentsdue": "30-Jun-21",
|
||||
"appellantLPAFinalCommentsdue": "4-Jul-21",
|
||||
"inquiryEvidenceDue": "N/A",
|
||||
"eventDate": "Date arranged",
|
||||
"decisionDate": "Not yet decided",
|
||||
},
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
"lpaname": "Cardiff County Council Planning",
|
||||
"@odata.etag": "W547952",
|
||||
"lpaname": "Cardiff County Council Planning",
|
||||
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
|
||||
"address1": "25 Merches Gardens",
|
||||
"town": "Cardiff",
|
||||
@@ -65,6 +134,29 @@ const ApiResponse = (req, res) => {
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary":
|
||||
"Erection of a two-storey chalet style detached dwelling",
|
||||
"caseOfficer": "Neale Oliver",
|
||||
"procedure": "Written representations",
|
||||
"status": "In progress",
|
||||
"decision": "Allowed",
|
||||
"outcome_document": "23424Appeal Decision.pdf",
|
||||
"caseLinkStatus": "not linked",
|
||||
"linkedCases": "none",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "26-May-21",
|
||||
"questionnaireDue": "02-Jun-21",
|
||||
"statementsDue": "30-Jun-21",
|
||||
"interestedPartyCommentsdue": "30-Jun-21",
|
||||
"appellantLPAFinalCommentsdue": "4-Jul-21",
|
||||
"inquiryEvidenceDue": "N/A",
|
||||
"eventDate": "Date arranged",
|
||||
"decisionDate": "Not yet decided",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
@@ -11,6 +11,35 @@ const ApiResponse = (req, res) => {
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00009-W8N6W4",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary":
|
||||
"Erection of a two-storey chalet style detached dwelling",
|
||||
"caseOfficer": "Neale Oliver",
|
||||
"procedure": "Written representations",
|
||||
"status": "In progress",
|
||||
"decision": "Allowed",
|
||||
"outcome_document": "23424Appeal Decision.pdf",
|
||||
"caseLinkStatus": "not linked",
|
||||
"linkedCases": "none",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "26-May-21",
|
||||
"questionnaireDue": "02-Jun-21",
|
||||
"statementsDue": "30-Jun-21",
|
||||
"interestedPartyCommentsdue": "30-Jun-21",
|
||||
"appellantLPAFinalCommentsdue": "4-Jul-21",
|
||||
"inquiryEvidenceDue": "N/A",
|
||||
"eventDate": "Date arranged",
|
||||
"decisionDate": "Not yet decided",
|
||||
},
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
@@ -21,6 +50,35 @@ const ApiResponse = (req, res) => {
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00010-J9W6L5",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary":
|
||||
"Erection of a two-storey chalet style detached dwelling",
|
||||
"caseOfficer": "Neale Oliver",
|
||||
"procedure": "Written representations",
|
||||
"status": "In progress",
|
||||
"decision": "Allowed",
|
||||
"outcome_document": "23424Appeal Decision.pdf",
|
||||
"caseLinkStatus": "not linked",
|
||||
"linkedCases": "none",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "26-May-21",
|
||||
"questionnaireDue": "02-Jun-21",
|
||||
"statementsDue": "30-Jun-21",
|
||||
"interestedPartyCommentsdue": "30-Jun-21",
|
||||
"appellantLPAFinalCommentsdue": "4-Jul-21",
|
||||
"inquiryEvidenceDue": "N/A",
|
||||
"eventDate": "Date arranged",
|
||||
"decisionDate": "Not yet decided",
|
||||
},
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
@@ -31,6 +89,35 @@ const ApiResponse = (req, res) => {
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00011-K1N0J8",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary":
|
||||
"Erection of a two-storey chalet style detached dwelling",
|
||||
"caseOfficer": "Neale Oliver",
|
||||
"procedure": "Written representations",
|
||||
"status": "In progress",
|
||||
"decision": "Allowed",
|
||||
"outcome_document": "23424Appeal Decision.pdf",
|
||||
"caseLinkStatus": "not linked",
|
||||
"linkedCases": "none",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "26-May-21",
|
||||
"questionnaireDue": "02-Jun-21",
|
||||
"statementsDue": "30-Jun-21",
|
||||
"interestedPartyCommentsdue": "30-Jun-21",
|
||||
"appellantLPAFinalCommentsdue": "4-Jul-21",
|
||||
"inquiryEvidenceDue": "N/A",
|
||||
"eventDate": "Date arranged",
|
||||
"decisionDate": "Not yet decided",
|
||||
},
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
@@ -41,6 +128,35 @@ const ApiResponse = (req, res) => {
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00012-D9W6S8",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary":
|
||||
"Erection of a two-storey chalet style detached dwelling",
|
||||
"caseOfficer": "Neale Oliver",
|
||||
"procedure": "Written representations",
|
||||
"status": "In progress",
|
||||
"decision": "Allowed",
|
||||
"outcome_document": "23424Appeal Decision.pdf",
|
||||
"caseLinkStatus": "not linked",
|
||||
"linkedCases": "none",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "26-May-21",
|
||||
"questionnaireDue": "02-Jun-21",
|
||||
"statementsDue": "30-Jun-21",
|
||||
"interestedPartyCommentsdue": "30-Jun-21",
|
||||
"appellantLPAFinalCommentsdue": "4-Jul-21",
|
||||
"inquiryEvidenceDue": "N/A",
|
||||
"eventDate": "Date arranged",
|
||||
"decisionDate": "Not yet decided",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
@@ -11,6 +11,35 @@ const ApiResponse = (req, res) => {
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00009-W8N6W4",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary":
|
||||
"Erection of a two-storey chalet style detached dwelling",
|
||||
"caseOfficer": "Neale Oliver",
|
||||
"procedure": "Written representations",
|
||||
"status": "In progress",
|
||||
"decision": "Allowed",
|
||||
"outcome_document": "23424Appeal Decision.pdf",
|
||||
"caseLinkStatus": "not linked",
|
||||
"linkedCases": "none",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "26-May-21",
|
||||
"questionnaireDue": "02-Jun-21",
|
||||
"statementsDue": "30-Jun-21",
|
||||
"interestedPartyCommentsdue": "30-Jun-21",
|
||||
"appellantLPAFinalCommentsdue": "4-Jul-21",
|
||||
"inquiryEvidenceDue": "N/A",
|
||||
"eventDate": "Date arranged",
|
||||
"decisionDate": "Not yet decided",
|
||||
},
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
@@ -21,6 +50,35 @@ const ApiResponse = (req, res) => {
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00010-J9W6L5",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary":
|
||||
"Erection of a two-storey chalet style detached dwelling",
|
||||
"caseOfficer": "Neale Oliver",
|
||||
"procedure": "Written representations",
|
||||
"status": "In progress",
|
||||
"decision": "Allowed",
|
||||
"outcome_document": "23424Appeal Decision.pdf",
|
||||
"caseLinkStatus": "not linked",
|
||||
"linkedCases": "none",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "26-May-21",
|
||||
"questionnaireDue": "02-Jun-21",
|
||||
"statementsDue": "30-Jun-21",
|
||||
"interestedPartyCommentsdue": "30-Jun-21",
|
||||
"appellantLPAFinalCommentsdue": "4-Jul-21",
|
||||
"inquiryEvidenceDue": "N/A",
|
||||
"eventDate": "Date arranged",
|
||||
"decisionDate": "Not yet decided",
|
||||
},
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
@@ -31,6 +89,35 @@ const ApiResponse = (req, res) => {
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00011-K1N0J8",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary":
|
||||
"Erection of a two-storey chalet style detached dwelling",
|
||||
"caseOfficer": "Neale Oliver",
|
||||
"procedure": "Written representations",
|
||||
"status": "In progress",
|
||||
"decision": "Allowed",
|
||||
"outcome_document": "23424Appeal Decision.pdf",
|
||||
"caseLinkStatus": "not linked",
|
||||
"linkedCases": "none",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "26-May-21",
|
||||
"questionnaireDue": "02-Jun-21",
|
||||
"statementsDue": "30-Jun-21",
|
||||
"interestedPartyCommentsdue": "30-Jun-21",
|
||||
"appellantLPAFinalCommentsdue": "4-Jul-21",
|
||||
"inquiryEvidenceDue": "N/A",
|
||||
"eventDate": "Date arranged",
|
||||
"decisionDate": "Not yet decided",
|
||||
},
|
||||
},
|
||||
{
|
||||
"@odata.etag": 'W/"547952"',
|
||||
@@ -41,6 +128,35 @@ const ApiResponse = (req, res) => {
|
||||
"postcode": "CF24 0JL",
|
||||
"reference": "CAS-00012-D9W6S8",
|
||||
"appellantApplicant": "Mrs Denise Williams",
|
||||
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
|
||||
"Planning Appeal - S78",
|
||||
"pinswg_appealcasetype": "846040000",
|
||||
"statuscode@OData.Community.Display.V1.FormattedValue":
|
||||
"In Progress",
|
||||
"statuscode": "1",
|
||||
"caseDetails": {
|
||||
"casetype": "",
|
||||
"lpa": "",
|
||||
"caseSummary":
|
||||
"Erection of a two-storey chalet style detached dwelling",
|
||||
"caseOfficer": "Neale Oliver",
|
||||
"procedure": "Written representations",
|
||||
"status": "In progress",
|
||||
"decision": "Allowed",
|
||||
"outcome_document": "23424Appeal Decision.pdf",
|
||||
"caseLinkStatus": "not linked",
|
||||
"linkedCases": "none",
|
||||
},
|
||||
"caseDates": {
|
||||
"start_date": "26-May-21",
|
||||
"questionnaireDue": "02-Jun-21",
|
||||
"statementsDue": "30-Jun-21",
|
||||
"interestedPartyCommentsdue": "30-Jun-21",
|
||||
"appellantLPAFinalCommentsdue": "4-Jul-21",
|
||||
"inquiryEvidenceDue": "N/A",
|
||||
"eventDate": "Date arranged",
|
||||
"decisionDate": "Not yet decided",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
+33
-35
@@ -35,8 +35,23 @@ const Home = (props) => {
|
||||
<Header courseName={t("common:service-name")} />
|
||||
<div className="govuk-width-container">
|
||||
<Banner />
|
||||
<Breadcrumbs slug={appealtypes} />
|
||||
<Case />
|
||||
<Breadcrumbs slug={appealtypes} props={props} />
|
||||
<Case
|
||||
myCases={props.myCases.myCases}
|
||||
myRepresentations={
|
||||
props.myRepresentations.myRepresentations
|
||||
}
|
||||
watchedCases={props.watchedCases.watchedCases}
|
||||
awaitingSubmission={
|
||||
props.awaitingSubmission.awaitingSubmission
|
||||
}
|
||||
caseReference={
|
||||
props.currentView.caseReference.currentReference
|
||||
}
|
||||
currentType={
|
||||
props.currentView.caseReference.currentType
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
<Footer footerLinks={footerLinks} />
|
||||
</div>
|
||||
@@ -44,38 +59,21 @@ const Home = (props) => {
|
||||
);
|
||||
};
|
||||
|
||||
// export const getServerSideProps = wrapper.getServerSideProps(
|
||||
// async ({ locale, store, req, res }) => {
|
||||
// const token = await getToken();
|
||||
// let accessToken = token.access_token;
|
||||
const mapStateToProps = (state) => {
|
||||
//console.log(state);
|
||||
|
||||
// const apiRoot = process.browser ? window.API_ROOT : process.env.API_ROOT;
|
||||
return {
|
||||
currentView: state.currentView,
|
||||
search: state.search,
|
||||
searchResultsObj: state.searchResultsObj,
|
||||
formData: state.formData,
|
||||
appealType: state.appealType,
|
||||
form: state.form,
|
||||
myCases: state.myCases,
|
||||
watchedCases: state.watchedCases,
|
||||
myRepresentations: state.myRepresentations,
|
||||
awaitingSubmission: state.awaitingSubmission,
|
||||
};
|
||||
};
|
||||
|
||||
// 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,
|
||||
// };
|
||||
// };
|
||||
|
||||
export default Home; //connect(mapStateToProps)(Home);
|
||||
export default connect(mapStateToProps)(Home);
|
||||
|
||||
@@ -40,27 +40,4 @@ const Home = (props) => {
|
||||
);
|
||||
};
|
||||
|
||||
// export const getServerSideProps = wrapper.getServerSideProps(
|
||||
// (store) =>
|
||||
// async ({ query, req, res }) => {
|
||||
// const incidents = await getIncidents;
|
||||
// console.log(incidents);
|
||||
// }
|
||||
// );
|
||||
|
||||
|
||||
// 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,
|
||||
// };
|
||||
// };
|
||||
|
||||
export default Home; //connect(mapStateToProps)(Home);
|
||||
|
||||
@@ -93,6 +93,7 @@ const mapStateToProps = (state) => {
|
||||
//console.log(state);
|
||||
|
||||
return {
|
||||
currentView: state.currentView,
|
||||
search: state.search,
|
||||
searchResultsObj: state.searchResultsObj,
|
||||
formData: state.formData,
|
||||
|
||||
@@ -63,39 +63,10 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
}
|
||||
);
|
||||
|
||||
// export const getServerSideProps = wrapper.getServerSideProps(
|
||||
// async ({ locale, store, query, 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));
|
||||
// console.log(query);
|
||||
// //store.dispatch(setSearch(query.search));
|
||||
// }
|
||||
// );
|
||||
|
||||
const mapStateToProps = (state) => {
|
||||
return {
|
||||
search: state.search,
|
||||
searchResultsObj: state.searchResultsObj,
|
||||
// // apiroot: state.apiroot,
|
||||
// // courseListContent: state.courseListContent.courseListContent,
|
||||
// // pages: state.pages.pages,
|
||||
// // footerLinks: state.footerLinks.footerLinks,
|
||||
// // regions: state.regions,
|
||||
// // sectors: state.sectors,
|
||||
// // form: state.form,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -63,28 +63,6 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
}
|
||||
);
|
||||
|
||||
// export const getServerSideProps = wrapper.getServerSideProps(
|
||||
// async ({ locale, store, query, 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));
|
||||
// console.log(query);
|
||||
// //store.dispatch(setSearch(query.search));
|
||||
// }
|
||||
// );
|
||||
|
||||
const mapStateToProps = (state) => {
|
||||
return {
|
||||
search: state.search,
|
||||
|
||||
Reference in New Issue
Block a user