Skip to content

Commit

Permalink
fix(src/components/input/textfieldwithlabelformgroup.tsx): update Label
Browse files Browse the repository at this point in the history
Reason field on new appointment screen no longer a required field.  Line 21, Label element now takes
isRequired attr from interface Props.

fix HospitalRun#1997
  • Loading branch information
JDarke committed Apr 21, 2020
1 parent 1f19bb8 commit 1d922c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/input/TextFieldWithLabelFormGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="form-group">
<Label text={label} htmlFor={id} isRequired />
<Label text={label} htmlFor={id} isRequired={isRequired} />
<TextField
rows={4}
value={value}
Expand Down

0 comments on commit 1d922c7

Please sign in to comment.