diff --git a/src/components/input/SelectWithLableFormGroup.tsx b/src/components/input/SelectWithLableFormGroup.tsx index be9874aca1..fff067037c 100644 --- a/src/components/input/SelectWithLableFormGroup.tsx +++ b/src/components/input/SelectWithLableFormGroup.tsx @@ -10,18 +10,37 @@ interface Props { value: string label: string name: string + isRequired?: boolean isEditable?: boolean options: Option[] onChange?: (event: React.ChangeEvent) => void + feedback?: string + isInvalid?: boolean } const SelectWithLabelFormGroup = (props: Props) => { - const { value, label, name, isEditable, options, onChange } = props + const { + value, + label, + name, + isEditable, + options, + onChange, + isRequired, + feedback, + isInvalid, + } = props const id = `${name}Select` return (
-
) diff --git a/src/user/user-slice.ts b/src/user/user-slice.ts index afcb489b76..c48dd0bc2a 100644 --- a/src/user/user-slice.ts +++ b/src/user/user-slice.ts @@ -25,6 +25,8 @@ const initialState: UserState = { Permissions.ViewIncident, Permissions.ViewIncidents, Permissions.ReportIncident, + Permissions.AddCarePlan, + Permissions.ReadCarePlan ], user: { id: 'some-hardcoded-id',