check form updates
This commit is contained in:
@@ -2,13 +2,20 @@ import useTranslation from "next-translate/useTranslation";
|
||||
import Head from "next/head";
|
||||
import { useRouter } from "next/router";
|
||||
import { connect } from "react-redux";
|
||||
import { getAppealsTypesForNewAppeal, getLPA } from "../../actions";
|
||||
import {
|
||||
getAppealsTypesForNewAppeal,
|
||||
getLPA,
|
||||
getPersonalAccount,
|
||||
} from "../../actions";
|
||||
import Breadcrumbs from "../../components/breadcrumbs";
|
||||
import CookieBanner from "../../components/cookieBanner";
|
||||
import Footer from "../../components/footer";
|
||||
import Header from "../../components/header";
|
||||
import CreateCase from "../../components/newappeal/createCase";
|
||||
import { setLoggedInUserId } from "../../store/accountDetails/action";
|
||||
import {
|
||||
setAccountDetails,
|
||||
setLoggedInUserId,
|
||||
} from "../../store/accountDetails/action";
|
||||
import { setAppealType } from "../../store/appealType/action";
|
||||
import { setLPA } from "../../store/lpa/action";
|
||||
import { wrapper } from "../../store/store";
|
||||
@@ -130,11 +137,16 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
|
||||
let loggedInUser = cookies.pinsUser;
|
||||
|
||||
const [appealTypeData, lpaData, caseData] = await Promise.all([
|
||||
console.log("has loggedInUser", loggedInUser);
|
||||
|
||||
const [appealTypeData, lpaData, accountDetails] = await Promise.all([
|
||||
await getAppealsTypesForNewAppeal(),
|
||||
await getLPA(),
|
||||
await getPersonalAccount(loggedInUser),
|
||||
]);
|
||||
|
||||
console.log("wewerwe s s", accountDetails);
|
||||
|
||||
const providerConfig = await getProviderConfig();
|
||||
// const lpaData = require("../../data/lpa.json");
|
||||
// const appealTypeData = require("../../data/appealtypes.json");
|
||||
@@ -143,6 +155,7 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
store.dispatch(setAppealType(appealTypeData));
|
||||
store.dispatch(setLPA(lpaData));
|
||||
store.dispatch(setLoggedInUserId(loggedInUser));
|
||||
store.dispatch(setAccountDetails(accountDetails));
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user