added environement variable switch for login

This commit is contained in:
2021-11-05 11:17:11 +00:00
parent 9a90f7e415
commit cf429bb1cc
3 changed files with 18 additions and 4 deletions
+2 -2
View File
@@ -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 }) {
<CaseSearch />
<CaseComment />
<Dns />
<Login />
{showLogin == "true" && <Login />}
{/* <Inspectorate /> */}
</div>
</div>