forked from CSCDP/family-context-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request CSCDP#12 from SocialFinanceDigitalLabs/add-no-reco…
…rds-found FAM-45: Update accordion
- Loading branch information
Showing
10 changed files
with
50 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
import React from 'react'; | ||
import AccordionHeader from './AccordionHeader'; | ||
import ServiceInvolvementAccordionSummary from './ServiceInvolvementAccordionSummary'; | ||
import BasicDetails from '../BasicDetails'; | ||
import AccordionSection from './AccordionSection'; | ||
import AccordionSectionHeader from './AccordionSectionHeader'; | ||
import AccordionContent from './AccordionContent'; | ||
import ServiceInvolvementDetails from '../../models/ServiceInvolvementDetails'; | ||
import ServiceInvolvementDetailsSummary from '../../models/ServiceInvolvementDetailsSummary'; | ||
|
||
const ServiceInvolvementAccordion: React.FC<{ serivceInvolvementDetails: ServiceInvolvementDetails }> = (props: { serivceInvolvementDetails: ServiceInvolvementDetails }) => { | ||
const ServiceInvolvementAccordion: React.FC<{ serviceInvolvementDetailsSummary: ServiceInvolvementDetailsSummary, click: () => void, children: any }> = (props: { serviceInvolvementDetailsSummary: ServiceInvolvementDetailsSummary, click: () => void, children: any }) => { | ||
|
||
return ( | ||
<AccordionSection> | ||
return ( | ||
<AccordionSection> | ||
<AccordionSectionHeader> | ||
<AccordionHeader>{props.serivceInvolvementDetails.serviceInvolvementDetailsSummary.service}</AccordionHeader> | ||
<ServiceInvolvementAccordionSummary serviceInvolvement={props.serivceInvolvementDetails.serviceInvolvementDetailsSummary} /> | ||
<AccordionHeader title={props.serviceInvolvementDetailsSummary.title} click={props.click}></AccordionHeader> | ||
<ServiceInvolvementAccordionSummary serviceInvolvement={props.serviceInvolvementDetailsSummary} /> | ||
</AccordionSectionHeader> | ||
<AccordionContent> | ||
<BasicDetails personDetails={props.serivceInvolvementDetails.serviceInvolvementContent}></BasicDetails> | ||
{props.children} | ||
</AccordionContent> | ||
</AccordionSection> | ||
) | ||
) | ||
} | ||
|
||
export default ServiceInvolvementAccordion; | ||
export default ServiceInvolvementAccordion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import ServiceInvolvementDetailsSummary from "./ServiceInvolvementDetailsSummary"; | ||
import TitleValuePair from "./TitleValuePair"; | ||
import PersonDetails from "./PersonDetails"; | ||
|
||
interface ServiceInvolvementDetails { | ||
serviceInvolvementDetailsSummary: ServiceInvolvementDetailsSummary, | ||
serviceInvolvementContent: PersonDetails | ||
person?: PersonDetails | ||
} | ||
|
||
export default ServiceInvolvementDetails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
interface ServiceInvolvementDetailsSummary { | ||
service: string, | ||
correctAsOf: string, | ||
syncedWith: string, | ||
syncedDuraction: string | ||
title: string, | ||
lastSynchronized: string, | ||
recordsAvailable: boolean, | ||
coverageStartDate: string, | ||
coverageEndDate: string, | ||
id: string | ||
} | ||
|
||
export default ServiceInvolvementDetailsSummary; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
interface TitleValuePair { | ||
title: string, | ||
value: string | ||
} | ||
|
||
export default TitleValuePair |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters