Skip to content

Commit 7977af4

Browse files
ArnaudFofouArnaudFofou
andauthored
OH2-461 | Update the title of operation form on edit mode in OPD (#723)
* update the title of operation form on edit mode in OPD * update the title and add new key bundlle for edit operation in OPD --------- Co-authored-by: ArnaudFofou <gui.fofou@umi2growcameroun.com>
1 parent 4237e2f commit 7977af4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/accessories/patientOPD/patientOPDForm/PatientOPDForm.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,9 @@ const PatientOPDForm: FunctionComponent<TProps> = ({
655655
</Accordion>
656656
</div>
657657
<CustomDialog
658-
title={t("opd.addoperation")}
658+
title={
659+
operationCreationMode ? t("opd.addoperation") : t("opd.editoperation")
660+
}
659661
description={t("opd.addoperationdesc")}
660662
open={showModal}
661663
onClose={onOperationCreated}

src/resources/i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@
245245
"newattendance": "New Attendance",
246246
"reattendance": "Re-attendance",
247247
"addoperation": "Add operation",
248+
"editoperation": "Edit operation",
248249
"addoperationdesc": "Add operation for the visit",
249250
"filtervisits": "Filter Visits",
250251
"fromdate": "Date From",

0 commit comments

Comments
 (0)