From e5b67cfbf7c54bb9c884756467a629c849f1b60a Mon Sep 17 00:00:00 2001 From: Devdeep Ghosh Date: Wed, 21 Feb 2024 19:54:58 +0530 Subject: [PATCH] hide header and footer from VitalsMonitor asset configure --- src/Components/Assets/AssetType/HL7Monitor.tsx | 9 ++++++++- src/Components/VitalsMonitor/HL7PatientVitalsMonitor.tsx | 2 +- .../VitalsMonitor/VentilatorPatientVitalsMonitor.tsx | 4 +++- src/Components/VitalsMonitor/types.ts | 1 + 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/Components/Assets/AssetType/HL7Monitor.tsx b/src/Components/Assets/AssetType/HL7Monitor.tsx index a7be23baad8..cca0a7571b8 100644 --- a/src/Components/Assets/AssetType/HL7Monitor.tsx +++ b/src/Components/Assets/AssetType/HL7Monitor.tsx @@ -131,12 +131,19 @@ const HL7Monitor = (props: HL7MonitorProps) => { )} {assetType === "HL7MONITOR" && ( - + )} {assetType === "VENTILATOR" && ( )} diff --git a/src/Components/VitalsMonitor/HL7PatientVitalsMonitor.tsx b/src/Components/VitalsMonitor/HL7PatientVitalsMonitor.tsx index 9ad178cef92..268e6c91ffa 100644 --- a/src/Components/VitalsMonitor/HL7PatientVitalsMonitor.tsx +++ b/src/Components/VitalsMonitor/HL7PatientVitalsMonitor.tsx @@ -179,7 +179,7 @@ export default function HL7PatientVitalsMonitor(props: IVitalsComponentProps) { - + {props.hideFooter ? null : } ); } diff --git a/src/Components/VitalsMonitor/VentilatorPatientVitalsMonitor.tsx b/src/Components/VitalsMonitor/VentilatorPatientVitalsMonitor.tsx index 08ca280eebf..ee3f471b22c 100644 --- a/src/Components/VitalsMonitor/VentilatorPatientVitalsMonitor.tsx +++ b/src/Components/VitalsMonitor/VentilatorPatientVitalsMonitor.tsx @@ -83,7 +83,9 @@ export default function VentilatorPatientVitalsMonitor( /> - + {props.hideFooter ? null : ( + + )} ); } diff --git a/src/Components/VitalsMonitor/types.ts b/src/Components/VitalsMonitor/types.ts index 78f1b3c0442..d6812d273d6 100644 --- a/src/Components/VitalsMonitor/types.ts +++ b/src/Components/VitalsMonitor/types.ts @@ -51,4 +51,5 @@ export interface IVitalsComponentProps { socketUrl: string; config?: ReturnType; hideHeader?: boolean; + hideFooter?: boolean; }