From 153e6dff502c4232bba7188b91987fd80897400a Mon Sep 17 00:00:00 2001 From: bowenzhu1 Date: Mon, 28 Aug 2023 06:15:26 -0400 Subject: [PATCH] use children and caregivers information in review form --- .../src/components/intake/IndividualDetails.tsx | 17 ++++++++++------- .../src/components/intake/ReviewCaseForm.tsx | 11 ++++++++++- frontend/src/components/pages/IntakePage.tsx | 2 ++ 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/intake/IndividualDetails.tsx b/frontend/src/components/intake/IndividualDetails.tsx index 9bbfaefb2..dff35a50b 100644 --- a/frontend/src/components/intake/IndividualDetails.tsx +++ b/frontend/src/components/intake/IndividualDetails.tsx @@ -1,11 +1,12 @@ import React from "react"; import { Button, VStack, Text, HStack, Icon, Divider } from "@chakra-ui/react"; import { ArrowRight } from "react-feather"; -import { IndividualDetailsOverview } from "./PromptBox"; +import { Children } from "./child-information/AddChildPage"; +import { Caregivers } from "./NewCaregiverModal"; type IndividualDetailsProps = { - childrenDetails: IndividualDetailsOverview[]; - caregiverDetails: IndividualDetailsOverview[]; + childrenDetails: Children; + caregiverDetails: Caregivers; }; const IndividualDetails = ({ @@ -29,10 +30,12 @@ const IndividualDetails = ({ - {indiv.name} + + {indiv.childDetails.childName} + - {indiv.fileNumber} + {indiv.childDetails.cpinFileNumber}