Removed proxy and added api calls, has gov gateway auth

This commit is contained in:
2022-01-20 10:56:26 +00:00
parent 6f37064eba
commit 5a536e158c
127 changed files with 5829 additions and 3097 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;