replace env variable useage so dyanmic not built

This commit is contained in:
2021-12-10 16:49:06 +00:00
parent 00e52a3127
commit 94883ddb58
3 changed files with 43 additions and 14 deletions
+11 -3
View File
@@ -9,9 +9,10 @@ import Inspectorate from "./homepage/inspectorate";
import CaseComment from "./homepage/casecomment";
import Dns from "./homepage/dns";
export default function MainHome({ children, pages, showLogin }) {
const MainHome = (props) => {
let { t } = useTranslation();
const { showLogin, GG_REDIRECT_URI, GG_CLIENT_ID } = props;
const router = useRouter();
const { locale } = router;
@@ -28,11 +29,18 @@ export default function MainHome({ children, pages, showLogin }) {
<CaseSearch />
<CaseComment />
<Dns />
{showLogin == "true" && <Login />}
{showLogin == "true" && (
<Login
GG_CLIENT_ID={GG_CLIENT_ID}
GG_REDIRECT_URI={GG_REDIRECT_URI}
/>
)}
{/* <Inspectorate /> */}
</div>
</div>
</div>
</main>
);
}
};
export default MainHome;