diff --git a/src/Common/hooks/useConfig.ts b/src/Common/hooks/useConfig.ts index 4e1cb806e3f..03d9dada9b9 100644 --- a/src/Common/hooks/useConfig.ts +++ b/src/Common/hooks/useConfig.ts @@ -14,14 +14,23 @@ export interface IConfig { site_url: string; analytics_server_url: string; - header_logo: ILogo; + /** + * The main logo of the app displayed on login and sidebar header. + */ main_logo: ILogo; - /** - * Logo and description for custom deployment. (This overrides the state logo) + * If present, the image will be displayed on the login page before the main logo. + */ + state_logo?: ILogo; + /** + * if present, this replaces the state logo on the login page only. */ custom_logo?: ILogo; + /** + * if present, this replaces the main logo on the login page only. + */ custom_logo_alt?: ILogo; + custom_description?: string; /** @@ -41,13 +50,15 @@ export interface IConfig { * SENTRY_ENVIRONMENT */ sentry_environment: string; + + /** + * The header banner is displayed on the top of + * the shift print form if the facility is kasp. + */ + header_logo: ILogo; kasp_enabled: boolean; kasp_string: string; kasp_full_string: string; - /** - * If present, the image will be displayed in the login page. - */ - state_logo?: ILogo; /** * URL of the sample format for asset import. */ diff --git a/src/Components/Auth/Login.tsx b/src/Components/Auth/Login.tsx index 8dcae9bafc0..62c9d632769 100644 --- a/src/Components/Auth/Login.tsx +++ b/src/Components/Auth/Login.tsx @@ -252,160 +252,161 @@ export const Login = (props: { forgot?: boolean }) => {