Skip to content

Commit

Permalink
Change “Caregiver” mentions to “Visiting Family Member” (#143)
Browse files Browse the repository at this point in the history
* Integrate Caregivers flow with add and delete functionality

* Remove unnecessary imports

* Fix optional form inputs

* Fix form reset bug and add persistance

* Change caregiver to visiting family members

* Fix form fields for visiting family member
  • Loading branch information
Ezzhingy authored Feb 16, 2023
1 parent db9fa1e commit 35c1336
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/intake/IndividualDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const IndividualDetails = ({
padding={1}
borderRadius="5px"
>
CAREGIVERS
Visiting Family Members
</Text>
{caregiverDetails.map((indiv, i) => (
<VStack key={i} w="full">
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/components/intake/NewCaregiverModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const NewCaregiverModal = ({
return (
<Box>
<ModalComponent
primaryTitle="New Caregiver"
primaryTitle="New Visiting Family Member"
modalContent={
<Box>
<SimpleGrid columns={2} spacingX="3rem" spacingY="0.75rem">
Expand All @@ -63,7 +63,7 @@ const NewCaregiverModal = ({
id="caregiverName"
name="caregiverName"
type="string"
placeholder="Enter full name of caregiver..."
placeholder="Enter full name of visiting family member..."
icon={<Icon as={User} />}
onChange={(event) => {
setCaregiverName(event.target.value);
Expand Down Expand Up @@ -136,7 +136,7 @@ const NewCaregiverModal = ({
<CustomInput
id="address"
name="address"
placeholder="Enter address of caregiver..."
placeholder="Enter address of visiting family member..."
icon={<Icon as={Navigation} />}
onChange={(event) => {
setAddress(event.target.value);
Expand All @@ -148,7 +148,7 @@ const NewCaregiverModal = ({
RELATIONSHIP TO CHILD(REN)
</FormLabel>
<Select
placeholder="Select caregiver's relationship to child(ren)"
placeholder="Select relationship to child(ren)"
onChange={(event) => {
setRelationship(event.target.value);
}}
Expand All @@ -166,7 +166,7 @@ const NewCaregiverModal = ({
id="contactNotes"
name="contactNotes"
type="string"
placeholder="Note any caregiver needs for case consideration, ex. special needs, cultural needs."
placeholder="Note any visiting family member needs for case consideration, ex. special needs, cultural needs."
height="10rem"
paddingBottom="7rem"
onChange={(event) => {
Expand Down Expand Up @@ -204,7 +204,7 @@ const NewCaregiverModal = ({
)
}
secondaryTitle="Individual Details"
primaryButtonTitle="Save caregiver"
primaryButtonTitle="Save visiting family member"
/>
</Box>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ const CaregiverForm = ({
return (
<>
<PromptBox
headerText="Caregivers"
descriptionText="No caregivers have been added to the case yet. "
buttonText="Add caregiver"
headerText="Visiting Family Members"
descriptionText="No visiting family members have been added to the case yet. "
buttonText="Add Visiting Family"
buttonIcon={<Icon as={UserPlus} w="16px" h="16px" />}
onButtonClick={onOpenAddCaregivers}
individualDetails={caregiverDetailsOverview}
Expand Down

0 comments on commit 35c1336

Please sign in to comment.