updated cookie manger added cookie policy

This commit is contained in:
2021-11-11 10:51:04 +00:00
parent f7f474dfd2
commit 9d54b0cd2d
17 changed files with 713 additions and 51 deletions
+20 -1
View File
@@ -16,7 +16,7 @@ import useTranslation from "next-translate/useTranslation";
import Case from "../../components/case";
const Home = (props) => {
const { footerLinks, pages } = props;
const { footerLinks, pages, showRepresentations } = props;
let { t, lang } = useTranslation();
const router = useRouter();
@@ -73,6 +73,10 @@ const Home = (props) => {
props.currentView.caseReference.appealType
}
incidentid={props.currentView.caseReference.incidentid}
representationsObj={
props.searchResultsObj.representationsObj
}
showRepresentations={showRepresentations}
/>
</div>
<Footer footerLinks={footerLinks} />
@@ -81,6 +85,21 @@ const Home = (props) => {
);
};
export const getServerSideProps = wrapper.getServerSideProps(
(store) => async (ctx) => {
const { query, req, res } = ctx;
const showRepresentationsCheck =
process.env.SHOWREPRESENTATIONS || false;
console.log("Show representation module: ", showRepresentationsCheck);
return {
props: { showRepresentations: showRepresentationsCheck },
};
}
);
const mapStateToProps = (state) => {
//console.log(state);