From 3a4caceeb30c495e1f358e1e9da6040b334f2996 Mon Sep 17 00:00:00 2001 From: sriharsh05 Date: Wed, 10 Jan 2024 21:32:17 +0530 Subject: [PATCH 1/2] fix close Button in Treatment Summary --- src/Components/Facility/TreatmentSummary.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Components/Facility/TreatmentSummary.tsx b/src/Components/Facility/TreatmentSummary.tsx index 8f1589cdf6f..6142417399d 100644 --- a/src/Components/Facility/TreatmentSummary.tsx +++ b/src/Components/Facility/TreatmentSummary.tsx @@ -11,6 +11,8 @@ import { PatientModel } from "../Patient/models"; import { GENDER_TYPES } from "../../Common/constants"; import { formatAge, formatDate, formatDateTime } from "../../Utils/utils"; +import useSlug from "../../Common/hooks/useSlug"; +import { navigate } from "raviger"; const Loading = lazy(() => import("../Common/Loading")); @@ -25,6 +27,7 @@ const TreatmentSummary = (props: any) => { const [isLoading, setIsLoading] = useState(false); const [investigations, setInvestigations] = useState>([]); const [dailyRounds, setDailyRounds] = useState({}); + const facilityId = useSlug("facility"); const fetchPatientData = useCallback( async (status: statusType) => { @@ -105,7 +108,11 @@ const TreatmentSummary = (props: any) => { Print Treatment Summary -