Skip to content

Commit

Permalink
UI changes to shifting form (#5323)
Browse files Browse the repository at this point in the history
* UI changes to shifting form

* Refactor code and bug fixes

* More bug fixes

* Add additional fields

* made shifting_approving_facility required in wartime_shifting

* hide shifting_approving_facility in peacetime shifting

---------

Co-authored-by: khavinshankar <[email protected]>
  • Loading branch information
Ashesh3 and khavinshankar authored Apr 23, 2023
1 parent ca1e58d commit bb472f4
Show file tree
Hide file tree
Showing 10 changed files with 624 additions and 364 deletions.
4 changes: 2 additions & 2 deletions src/Components/Patient/PatientCategorySelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SelectFormField } from "../Form/FormFields/SelectFormField";
import { FormFieldBaseProps } from "../Form/FormFields/Utils";

/**
* A `FormField` component to select patient category and is always a mandatory
* A `FormField` component to select patient category and is by default a mandatory
* field.
*/
export default function PatientCategorySelect(
Expand All @@ -12,7 +12,7 @@ export default function PatientCategorySelect(
return (
<SelectFormField
{...props}
required
required={props.required ?? true}
options={PATIENT_CATEGORIES}
optionValue={(option) => option.id}
optionLabel={(option) => option.text}
Expand Down
Loading

0 comments on commit bb472f4

Please sign in to comment.