From c5639512297982bcd974a2e96bb55c378266307e Mon Sep 17 00:00:00 2001 From: Jabar Jeremy <24471994+jabahum@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:14:42 +0300 Subject: [PATCH] Adjust Logo Naming (#26) adjust name (#26) --- src/config-schema.ts | 8 ++++---- src/login/background.wrapper.component.tsx | 6 +++--- src/login/logo.component.tsx | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) 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} ) : (