From f3ef9b877b6f9365fc190084063341eea2761e18 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Tue, 6 Aug 2024 18:47:14 +0530 Subject: [PATCH] add links to reach the print page --- .../Medicine/ManagePrescriptions.tsx | 10 +++- .../MedicineAdministrationSheet/index.tsx | 46 +++++++++++-------- 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/src/Components/Medicine/ManagePrescriptions.tsx b/src/Components/Medicine/ManagePrescriptions.tsx index fd335ce19fb..70fe5b6e098 100644 --- a/src/Components/Medicine/ManagePrescriptions.tsx +++ b/src/Components/Medicine/ManagePrescriptions.tsx @@ -10,7 +10,15 @@ export default function ManagePrescriptions() { const { goBack } = useAppHistory(); return ( - + + + Print + + } + >
{ const prescriptionList = [ ...(data?.results ?? []), - ...(showDiscontinued ? discontinuedPrescriptions.data?.results ?? [] : []), + ...(showDiscontinued + ? (discontinuedPrescriptions.data?.results ?? []) + : []), ]; const { activityTimelineBounds, prescriptions } = useMemo( @@ -90,25 +92,31 @@ const MedicineAdministrationSheet = ({ readonly, is_prn }: Props) => { options={ !readonly && !!data?.results && ( - - - - - {t("edit_prescriptions")} - - {t("edit")} + <> + + + + + {t("edit_prescriptions")} + + {t("edit")} + + refetch()} + /> + + + + Print - refetch()} - /> - + ) } />