Skip to content

Commit

Permalink
hide header and footer from VitalsMonitor asset configure
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevildude committed Feb 21, 2024
1 parent 9ee5e1a commit e5b67cf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
9 changes: 8 additions & 1 deletion src/Components/Assets/AssetType/HL7Monitor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,19 @@ const HL7Monitor = (props: HL7MonitorProps) => {
)}

{assetType === "HL7MONITOR" && (
<HL7PatientVitalsMonitor key={socketUrl} socketUrl={socketUrl} />
<HL7PatientVitalsMonitor
key={socketUrl}
socketUrl={socketUrl}
hideHeader={true}
hideFooter={true}
/>
)}
{assetType === "VENTILATOR" && (
<VentilatorPatientVitalsMonitor
key={socketUrl}
socketUrl={socketUrl}
hideHeader={true}
hideFooter={true}
/>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Components/VitalsMonitor/HL7PatientVitalsMonitor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default function HL7PatientVitalsMonitor(props: IVitalsComponentProps) {
</div>
</div>
</div>
<VitalsMonitorFooter asset={asset} />
{props.hideFooter ? null : <VitalsMonitorFooter asset={asset} />}
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ export default function VentilatorPatientVitalsMonitor(
/>
</VitalsNonWaveformContent>
</div>
<VitalsMonitorFooter asset={props.patientAssetBed?.asset} />
{props.hideFooter ? null : (
<VitalsMonitorFooter asset={props.patientAssetBed?.asset} />
)}
</div>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/Components/VitalsMonitor/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ export interface IVitalsComponentProps {
socketUrl: string;
config?: ReturnType<typeof getVitalsCanvasSizeAndDuration>;
hideHeader?: boolean;
hideFooter?: boolean;
}

0 comments on commit e5b67cf

Please sign in to comment.