diff --git a/src/Components/Facility/Investigations/ShowInvestigation.tsx b/src/Components/Facility/Investigations/ShowInvestigation.tsx index 53d5e12460c..64f83b96e99 100644 --- a/src/Components/Facility/Investigations/ShowInvestigation.tsx +++ b/src/Components/Facility/Investigations/ShowInvestigation.tsx @@ -1,15 +1,12 @@ import _, { set } from "lodash-es"; import { navigate } from "raviger"; -import { lazy, ReactNode, useCallback, useReducer } from "react"; -import { useTranslation } from "react-i18next"; +import { lazy, useCallback, useReducer } from "react"; import routes from "../../../Redux/api"; import * as Notification from "../../../Utils/Notifications.js"; import request from "../../../Utils/request/request"; import useQuery from "../../../Utils/request/useQuery"; import InvestigationTable from "./InvestigationTable"; import PrintPreview from "../../../CAREUI/misc/PrintPreview"; -import { classNames, formatDate, formatDateTime, formatName, patientAgeInYears } from "../../../Utils/utils"; -import careConfig from "@careConfig"; const Loading = lazy(() => import("../../Common/Loading")); const initialState = { @@ -37,8 +34,7 @@ const updateFormReducer = (state = initialState, action: any) => { }; export default function ShowInvestigation(props: any) { - const { t } = useTranslation(); - const { consultationId, patientId, facilityId, sessionId } = props; + const { consultationId, patientId, sessionId } = props; const [state, dispatch] = useReducer(updateFormReducer, initialState); const { loading: investigationLoading } = useQuery(routes.getInvestigation, { @@ -144,9 +140,7 @@ export default function ShowInvestigation(props: any) { } return ( - - + - ); } - -const PatientDetail = ({ - name, - children, - className, - -}: { - name: string; - children?: ReactNode; - className?: string; -}) => { - return ( -
-
{name}:
- {children != null ? ( - {children} - ) : ( -
- )} -
- ); -}; diff --git a/src/Components/Facility/TreatmentSummary.tsx b/src/Components/Facility/TreatmentSummary.tsx index 3e9715a913f..610e7dc189d 100644 --- a/src/Components/Facility/TreatmentSummary.tsx +++ b/src/Components/Facility/TreatmentSummary.tsx @@ -28,9 +28,7 @@ export interface ITreatmentSummaryProps { export default function TreatmentSummary({ consultationId, patientId, - facilityId, }: ITreatmentSummaryProps) { - const { t } = useTranslation(); const date = new Date(); @@ -48,13 +46,16 @@ export default function TreatmentSummary({
- +
- -
-

{consultationData?.facility_name}

- care logo -
+
+

{consultationData?.facility_name}

+ care logo +

{t("treatment_summary__heading")}

@@ -516,4 +517,3 @@ function InstructionsSection({ consultationData }: IInstructionsSection) { ); } -