Skip to content

Commit

Permalink
remove formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jona42-ui committed Nov 16, 2023
1 parent 731dc4f commit 70b673a
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions frontend/src/components/patient/CreatePatientForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ function CreatePatientForm(props) {
const componentMounted = useRef(false);
const intl = useIntl();
const [dateOfBirthFormatter,setDateOfBirthFormatter] = useState({"years": "", "months": "", "days": ""})

const handleDatePickerChange = (values, ...e) => {
var patient = values;
patient.birthDateForDisplay = e[1];
Expand Down Expand Up @@ -390,9 +389,7 @@ function CreatePatientForm(props) {
: values.patientContact?.person.lastName
}
name={field.name}
labelText={intl.formatMessage({
id: "patientcontact.person.lastname",
})}
labelText={intl.formatMessage({id: "patientcontact.person.lastname",})}
id={field.name}
className="inputText"
/>
Expand All @@ -407,9 +404,7 @@ function CreatePatientForm(props) {
: values.patientContact?.person.firstName
}
name={field.name}
labelText={intl.formatMessage({
id: "patientcontact.person.firstname",
})}
labelText={intl.formatMessage({id: "patientcontact.person.firstname",})}
id={field.name}
className="inputText"
/>
Expand All @@ -426,9 +421,7 @@ function CreatePatientForm(props) {
: values.patientContact?.person.email
}
name={field.name}
labelText={intl.formatMessage({
id: "patientcontact.person.email",
})}
labelText={intl.formatMessage({id: "patientcontact.person.email",})}
id={field.name}
className="inputText"
/>
Expand All @@ -443,13 +436,7 @@ function CreatePatientForm(props) {
: values.patientContact?.person.primaryPhone
}
name={field.name}
labelText={intl.formatMessage(
{
id: "patient.label.contactphone",
defaultMessage: "Contact Phone: {PHONE_FORMAT}",
},
{ PHONE_FORMAT: configurationProperties.PHONE_FORMAT }
)}
labelText={intl.formatMessage({id: "patient.label.contactphone",defaultMessage: "Contact Phone: {PHONE_FORMAT}",},{ PHONE_FORMAT: configurationProperties.PHONE_FORMAT })}
id={field.name}
className="inputText"
/>
Expand All @@ -469,13 +456,7 @@ function CreatePatientForm(props) {
<TextInput
value={values.primaryPhone}
name={field.name}
labelText={intl.formatMessage(
{
id: "patient.label.primaryphone",
defaultMessage: "Phone: {PHONE_FORMAT}",
},
{ PHONE_FORMAT: configurationProperties.PHONE_FORMAT }
)}
labelText={intl.formatMessage({id: "patient.label.primaryphone",defaultMessage: "Phone: {PHONE_FORMAT}",},{ PHONE_FORMAT: configurationProperties.PHONE_FORMAT })}
id={field.name}
className="inputText"
/>
Expand Down

0 comments on commit 70b673a

Please sign in to comment.