From b43facf64e11e412fd1b4dfb2b872602e5ae0f75 Mon Sep 17 00:00:00 2001 From: alti21 Date: Thu, 19 Mar 2020 11:36:25 -0700 Subject: [PATCH] fix(#1915): ark required fields as required for new/edit Patient --- src/components/input/TextInputWithLabelFormGroup.tsx | 5 +++-- src/patients/GeneralInformation.tsx | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/input/TextInputWithLabelFormGroup.tsx b/src/components/input/TextInputWithLabelFormGroup.tsx index 5f1d8ef2fa..58c213c46d 100644 --- a/src/components/input/TextInputWithLabelFormGroup.tsx +++ b/src/components/input/TextInputWithLabelFormGroup.tsx @@ -9,14 +9,15 @@ interface Props { type: 'text' | 'email' | 'number' | 'tel' placeholder?: string onChange?: (event: React.ChangeEvent) => void + isRequired?: boolean } const TextInputWithLabelFormGroup = (props: Props) => { - const { value, label, name, isEditable, onChange, placeholder, type } = props + const { value, label, name, isEditable, onChange, placeholder, type, isRequired } = props const id = `${name}TextInput` return (
-