Skip to content

Commit

Permalink
Update terminology: replace "Consultation Updates" with "Log Updates"…
Browse files Browse the repository at this point in the history
… in components and localization
  • Loading branch information
yash-learner committed Nov 13, 2024
1 parent d2a2e05 commit 79a3616
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cypress/pageobject/Patient/PatientConsultation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ export class PatientConsultationPage {

clickViewConsultationButton() {
cy.verifyAndClickElement(
"#view_consultation_updates",
"View Consultation / Consultation Updates",
"#view_consultation_and_log_updates",
"View Consultation / Log Updates",
);
}

Expand Down
1 change: 1 addition & 0 deletions public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,7 @@
"view_abdm_records": "View ABDM Records",
"view_asset": "View Assets",
"view_cns": "View CNS",
"view_consultation_and_log_updates": "View Consultation / Log Updates",
"view_details": "View Details",
"view_faciliy": "View Facility",
"view_patients": "View Patients",
Expand Down
7 changes: 4 additions & 3 deletions src/components/Facility/ConsultationCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import careConfig from "@careConfig";
import { t } from "i18next";
import { navigate } from "raviger";
import { useState } from "react";

Expand Down Expand Up @@ -169,15 +170,15 @@ export const ConsultationCard = (props: ConsultationProps) => {
</div>
<div className="mt-4 flex w-full flex-col justify-between gap-1 md:flex-row">
<ButtonV2
id="view_consultation_updates"
id="view_consultation_and_log_updates"
className="h-auto whitespace-pre-wrap border border-secondary-500 bg-white text-black hover:bg-secondary-300"
onClick={() =>
navigate(
`/facility/${itemData.facility}/patient/${itemData.patient}/consultation/${itemData.id}`,
)
}
>
View Consultation / Consultation Updates
{t("view_consultation_and_log_updates")}
</ButtonV2>
<ButtonV2
className="h-auto whitespace-pre-wrap border border-secondary-500 bg-white text-black hover:bg-secondary-300"
Expand Down Expand Up @@ -207,7 +208,7 @@ export const ConsultationCard = (props: ConsultationProps) => {
disabled={!!itemData.discharge_date}
authorizeFor={NonReadOnlyUsers}
>
Add Consultation Updates
{t("add") + " " + t("log_update")}
</ButtonV2>
)}
</div>
Expand Down

0 comments on commit 79a3616

Please sign in to comment.