diff --git a/.env.local b/.env.local index bdac164f..6f725e8c 100644 --- a/.env.local +++ b/.env.local @@ -31,3 +31,4 @@ SASKEYNAME = "testpedwhcpolicy" GOOGLE_TAG_MANAGER = GTM-T78CBC3 +SHOWLOGIN = "true" diff --git a/components/main.js b/components/main.js index 6b5c891e..0e9ecb03 100644 --- a/components/main.js +++ b/components/main.js @@ -9,7 +9,7 @@ import Inspectorate from "./homepage/inspectorate"; import CaseComment from "./homepage/casecomment"; import Dns from "./homepage/dns"; -export default function Home({ children, pages }) { +export default function MainHome({ children, pages, showLogin }) { let { t } = useTranslation(); const router = useRouter(); @@ -28,7 +28,7 @@ export default function Home({ children, pages }) { - + {showLogin == "true" && } {/* */} diff --git a/pages/index.js b/pages/index.js index 6b9797f9..18cfcd8c 100644 --- a/pages/index.js +++ b/pages/index.js @@ -17,7 +17,7 @@ import { getIncidents } from "../actions"; import { parseCookies } from "nookies"; const Home = (props) => { - const { footerLinks, pages } = props; + const { footerLinks, pages, showLogin } = props; let { t, lang } = useTranslation(); const router = useRouter(); @@ -78,7 +78,7 @@ const Home = (props) => {
-
+