From caf23911ece21b61cd370708d91d90797f89ef58 Mon Sep 17 00:00:00 2001 From: Gabriel Pelouze Date: Thu, 14 Sep 2023 18:17:30 +0200 Subject: [PATCH] show site icon on login page --- vre-panel/pages/auth/signin.tsx | 13 ++++++++++++- vre-panel/templates/Nav.tsx | 8 +++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/vre-panel/pages/auth/signin.tsx b/vre-panel/pages/auth/signin.tsx index 48d0c75..b6982dc 100644 --- a/vre-panel/pages/auth/signin.tsx +++ b/vre-panel/pages/auth/signin.tsx @@ -1,14 +1,25 @@ import { getProviders, getSession, signIn } from "next-auth/react" import getConfig from 'next/config' +import {useContext} from "react"; +import {PaasConfigContext} from "../../context/PaasConfig"; const { publicRuntimeConfig } = getConfig() export default function SignIn({ providers }: { providers: any }) { + + const {paasConfig, paasConfigLoading} = useContext(PaasConfigContext) + return (
- LifeWatch Logo + {paasConfigLoading || ( + Site icon + )} <> {Object.values(providers).map((provider: any) => (
diff --git a/vre-panel/templates/Nav.tsx b/vre-panel/templates/Nav.tsx index 19439d3..8d156ca 100644 --- a/vre-panel/templates/Nav.tsx +++ b/vre-panel/templates/Nav.tsx @@ -18,15 +18,13 @@ const Nav = () => {