From 1d922c7c0dfa0537d3910c8ca2c4d9568c89190e Mon Sep 17 00:00:00 2001 From: JohnD <52716187+JDarke@users.noreply.github.com> Date: Tue, 21 Apr 2020 12:31:19 +0100 Subject: [PATCH] fix(src/components/input/textfieldwithlabelformgroup.tsx): update Label Reason field on new appointment screen no longer a required field. Line 21, Label element now takes isRequired attr from interface Props. fix #1997 --- src/components/input/TextFieldWithLabelFormGroup.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/input/TextFieldWithLabelFormGroup.tsx b/src/components/input/TextFieldWithLabelFormGroup.tsx index 86948b5760..3848ddf02a 100644 --- a/src/components/input/TextFieldWithLabelFormGroup.tsx +++ b/src/components/input/TextFieldWithLabelFormGroup.tsx @@ -14,11 +14,11 @@ interface Props { } const TextFieldWithLabelFormGroup = (props: Props) => { - const { value, label, name, isEditable, isInvalid, feedback, onChange } = props + const { value, label, name, isEditable, isInvalid, isRequired, feedback, onChange } = props const id = `${name}TextField` return (