Skip to content

Commit

Permalink
Refactor onClick event in ConsultationDetails (#6704)
Browse files Browse the repository at this point in the history
component
  • Loading branch information
konavivekramakrishna authored Nov 29, 2023
1 parent f5bc741 commit 3aa6259
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 @@ -309,7 +309,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 3aa6259

Please sign in to comment.