From e571081d96623e2c90534829ebf121cb0ea3cacd Mon Sep 17 00:00:00 2001 From: Omkar76 Date: Tue, 12 Dec 2023 08:07:02 +0530 Subject: [PATCH] Backup --- .../Facility/ConsultationDetails/index.tsx | 103 +++++++++--------- 1 file changed, 53 insertions(+), 50 deletions(-) diff --git a/src/Components/Facility/ConsultationDetails/index.tsx b/src/Components/Facility/ConsultationDetails/index.tsx index 2f6ca03ef06..9888a982660 100644 --- a/src/Components/Facility/ConsultationDetails/index.tsx +++ b/src/Components/Facility/ConsultationDetails/index.tsx @@ -270,56 +270,59 @@ export const ConsultationDetails = (props: any) => { breadcrumbs={true} backUrl="/patients" /> -
- {!consultationData.discharge_date && ( - <> - - {patientData.last_consultation?.id && - isCameraAttached && - ["DistrictAdmin", "StateAdmin", "Doctor"].includes( - authUser.user_type - ) && ( - - Camera Feed - - )} - - )} - - Patient Details - - - showPatientNotesPopup - ? navigate( - `/facility/${facilityId}/patient/${patientId}/notes` - ) - : setShowPatientNotesPopup(true) - } - className="btn btn-primary m-1 w-full hover:text-white" - > - Doctor's Notes - +
+
+ {!consultationData.discharge_date && ( + <> + + {true && + ["DistrictAdmin", "StateAdmin", "Doctor"].includes( + authUser.user_type + ) && ( + + Camera Feed + + )} + + )} +
+
+ + Patient Details + + + showPatientNotesPopup + ? navigate( + `/facility/${facilityId}/patient/${patientId}/notes` + ) + : setShowPatientNotesPopup(true) + } + className="btn btn-primary m-1 grow basis-1/4 hover:text-white xl:grow-0" + > + Doctor's Notes + +