Skip to content

Commit

Permalink
Refactor onClick event in ConsultationDetails
Browse files Browse the repository at this point in the history
component
  • Loading branch information
konavivekramakrishna committed Nov 23, 2023
1 parent f804e6d commit 150a5ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Components/Facility/ConsultationDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,13 @@ export const ConsultationDetails = (props: any) => {
</Link>
<Link
id="patient_doctor_notes"
onClick={() => setShowPatientNotesPopup(true)}
onClick={() =>
showPatientNotesPopup
? navigate(
`/facility/${facilityId}/patient/${patientId}/notes`
)
: setShowPatientNotesPopup(true)
}
className="btn btn-primary m-1 w-full hover:text-white"
>
Doctor&apos;s Notes
Expand Down

0 comments on commit 150a5ba

Please sign in to comment.