watched cases and view all

This commit is contained in:
2024-02-05 15:26:13 +00:00
parent 1e1b97f2a9
commit 12d1fbc55e
15 changed files with 57 additions and 40 deletions
+8
View File
@@ -40,6 +40,7 @@ import {
setMyRepresentations,
setMyRepresentationsDetails,
} from "../../store/myRepresentations/action";
import { setShowReps } from "../../store/currentView/action";
import { wrapper } from "../../store/store";
import {
setWatchedCases,
@@ -57,6 +58,7 @@ const Home = (props) => {
accountDetails,
showFileUpload,
showLoginCheck,
currentView,
} = props;
let { t, lang } = useTranslation();
@@ -148,6 +150,7 @@ const Home = (props) => {
showFileUpload={showFileUpload}
containerID={accountDetails.containerID}
showLoginCheck={showLoginCheck}
currentView={currentView}
/>
</div>
<Footer footerLinks={footerLinks} />
@@ -237,6 +240,11 @@ export const getServerSideProps = wrapper.getServerSideProps(
? "cy"
: "en";
const showLoginCheck = process.env.SHOWLOGIN || false;
const showMapCheck = process.env.SHOWMAPS || false;
const showReps = process.env.SHOWREPRESENTATIONS || false;
store.dispatch(setShowReps(showReps, showLoginCheck));
// if (preferredLocale != ctx.locale) {
// return {
// redirect: {