From defaf469b2b0be59c9a58122136c22c499822660 Mon Sep 17 00:00:00 2001 From: abertnamanya Date: Wed, 20 Sep 2023 12:50:46 +0300 Subject: [PATCH] Order changes --- frontend/src/components/addOrder/AddOrder.js | 2 +- .../components/patient/CreatePatientForm.js | 57 ++++++++++--------- frontend/src/languages/en.json | 4 +- frontend/src/languages/fr.json | 4 +- 4 files changed, 35 insertions(+), 32 deletions(-) diff --git a/frontend/src/components/addOrder/AddOrder.js b/frontend/src/components/addOrder/AddOrder.js index 0ba2c7516c..eb34cb297f 100644 --- a/frontend/src/components/addOrder/AddOrder.js +++ b/frontend/src/components/addOrder/AddOrder.js @@ -468,7 +468,7 @@ const AddOrder = (props) => { className="inputDate" labelText={} value={orderFormValues.sampleOrderItems.nextVisitDate} - autofillDate={true} + autofillDate={false} onChange={(date) => handleDatePickerChange("nextVisitDate", date)} /> diff --git a/frontend/src/components/patient/CreatePatientForm.js b/frontend/src/components/patient/CreatePatientForm.js index 6e350dddc5..feaab2c1ef 100644 --- a/frontend/src/components/patient/CreatePatientForm.js +++ b/frontend/src/components/patient/CreatePatientForm.js @@ -359,6 +359,8 @@ function CreatePatientForm(props) { )} + +
{({ field }) => ( @@ -427,18 +429,10 @@ function CreatePatientForm(props) {
+
+
+
- - {({ field }) => ( - - )} - {({ field }) => ( )} + + {({ field }) => ( + + + + + )} +
@@ -507,25 +515,20 @@ function CreatePatientForm(props) {
-
- - {({ field }) => ( - - - - - )} - -
+ + {({ field }) => ( + + )} + {({ field }) => (