diff --git a/src/config-schema.ts b/src/config-schema.ts index cc3e6d0..5ffa8c8 100644 --- a/src/config-schema.ts +++ b/src/config-schema.ts @@ -39,7 +39,7 @@ export const configSchema = { logo: { src: { _type: Type.String, - _default: "${openmrsSpaBase}/home/patient-queues", + _default: "/openmrs/spa/logo.svg", _description: "A path or URL to an image. If null, will use the OpenMRS SVG sprite.", _validators: [validators.isUrl], @@ -50,7 +50,7 @@ export const configSchema = { _description: "Alt text, shown on hover", }, }, - loginBackgroundImage: { + loginBackground: { src: { _type: Type.String, _default: "/openmrs/spa/background.png", @@ -64,10 +64,10 @@ export const configSchema = { _description: "Alt text, shown on hover", }, }, - loginLogoImage: { + loginBanner: { src: { _type: Type.String, - _default: "/openmrs/spa/logo.svg", + _default: "/openmrs/spa/banner.png", _description: "A path or URL to an image. If null, will use the OpenMRS SVG sprite.", _validators: [validators.isUrl], diff --git a/src/login/background.wrapper.component.tsx b/src/login/background.wrapper.component.tsx index 824e072..732fe5e 100644 --- a/src/login/background.wrapper.component.tsx +++ b/src/login/background.wrapper.component.tsx @@ -4,11 +4,11 @@ import { useConfig } from "@openmrs/esm-framework"; const BackgroundWrapper = ({ children }) => { const config = useConfig(); - return config?.loginBackgroundImage ? ( + return config?.loginBackground ? ( <> {config?.loginBackgroundImage?.alt
diff --git a/src/login/logo.component.tsx b/src/login/logo.component.tsx index 7bbad51..d6770b5 100644 --- a/src/login/logo.component.tsx +++ b/src/login/logo.component.tsx @@ -2,12 +2,12 @@ import React from "react"; import { useConfig } from "@openmrs/esm-framework"; const Logo = (props) => { - const { loginLogoImage } = useConfig(); - return loginLogoImage.src ? ( + const { loginBanner } = useConfig(); + return loginBanner.src ? ( {loginLogoImage.alt} ) : (