From 2553a6ae38275455bffeeeea2a120dca5e1d3335 Mon Sep 17 00:00:00 2001
From: Ashesh3 <3626859+Ashesh3@users.noreply.github.com>
Date: Mon, 30 Oct 2023 15:55:22 +0530
Subject: [PATCH] Fixes for notes popover
---
.../Facility/ConsultationDetails/index.tsx | 20 +++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
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 && (
+
+ )}
);
};