diff --git a/src/Components/Facility/ConsultationDetails/index.tsx b/src/Components/Facility/ConsultationDetails/index.tsx index cedb1a843d3..725d5ac4148 100644 --- a/src/Components/Facility/ConsultationDetails/index.tsx +++ b/src/Components/Facility/ConsultationDetails/index.tsx @@ -23,9 +23,8 @@ import PatientInfoCard from "../../Patient/PatientInfoCard"; import { PatientModel } from "../../Patient/models"; import { formatDateTime, relativeTime } from "../../../Utils/utils"; -import { navigate } from "raviger"; +import { navigate, useQueryParams } from "raviger"; import { useDispatch } from "react-redux"; -import { useQueryParams } from "raviger"; import { useTranslation } from "react-i18next"; import { triggerGoal } from "../../../Integrations/Plausible"; import useAuthUser from "../../../Common/hooks/useAuthUser"; @@ -42,6 +41,7 @@ import { ConsultationPressureSoreTab } from "./ConsultationPressureSoreTab"; import { ConsultationDialysisTab } from "./ConsultationDialysisTab"; import { ConsultationNeurologicalMonitoringTab } from "./ConsultationNeurologicalMonitoringTab"; import { ConsultationNutritionTab } from "./ConsultationNutritionTab"; +import PatientNotesSlideover from "../PatientNotesSlideover"; const Loading = lazy(() => import("../../Common/Loading")); const PageTitle = lazy(() => import("../../Common/PageTitle")); @@ -103,6 +103,7 @@ export const ConsultationDetails = (props: any) => { return "None"; } }; + const [showPatientNotesPopup, setShowPatientNotesPopup] = useState(false); const authUser = useAuthUser(); @@ -352,13 +353,12 @@ export const ConsultationDetails = (props: any) => { > Patient Details - setShowPatientNotesPopup(true)} className="btn btn-primary m-1 w-full hover:text-white" > Doctor's Notes - + @@ -537,6 +537,14 @@ export const ConsultationDetails = (props: any) => { show={showDoctors} setShow={setShowDoctors} /> + + {showPatientNotesPopup && ( + + )} ); };