Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

feat(patient): put "Unknow" next to date of brith field #2217

Merged
merged 8 commits into from
Jul 11, 2020
10 changes: 3 additions & 7 deletions src/patients/GeneralInformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const GeneralInformation = (props: Props): ReactElement => {
</div>
</div>
<div className="row">
<div className="col">
<div className="col-md-3">
{patient.isApproximateDateOfBirth ? (
<TextInputWithLabelFormGroup
label={t('patient.approximateAge')}
Expand All @@ -195,8 +195,6 @@ const GeneralInformation = (props: Props): ReactElement => {
feedback={t(error?.dateOfBirth)}
/>
)}
</div>
<div className="col">
<div className="form-group">
<Checkbox
label={t('patient.unknownDateOfBirth')}
Expand All @@ -206,9 +204,7 @@ const GeneralInformation = (props: Props): ReactElement => {
/>
</div>
</div>
</div>
<div className="row">
<div className="col-md-6">
<div className="col">
<TextInputWithLabelFormGroup
label={t('patient.occupation')}
name="occupation"
Expand All @@ -217,7 +213,7 @@ const GeneralInformation = (props: Props): ReactElement => {
onChange={(event) => onFieldChange('occupation', event.currentTarget.value)}
/>
</div>
<div className="col-md-6">
<div className="col">
<TextInputWithLabelFormGroup
label={t('patient.preferredLanguage')}
name="preferredLanguage"
Expand Down