Skip to content

Commit

Permalink
Add blurb for familu hub network
Browse files Browse the repository at this point in the history
  • Loading branch information
apricot13 committed Nov 18, 2024
1 parent f734ff3 commit 2d8d895
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/DetailDialog/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,12 @@ const DetailDialog = ({ serviceId, location, navigate }) => {
/>
</Body>
)}

{theme.DetailDialogExtra && (
<Body>
<theme.DetailDialogExtra service={service} />
</Body>
)}
<Body>
{service.hasOwnProperty("service_at_locations") &&
service.service_at_locations.length === 1 &&
Expand Down
15 changes: 15 additions & 0 deletions src/themes/bfis/vars_bfis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as Styles from "../../components/Footer/Footer.styles"
import ResponsiveSentence from "../../components/ResponsiveSentence"
import { AStrong } from "../../components/A"
import { FamilyHubsNetworkTag } from "../../components/FamilyHubsNetwork"
import { Crosshead } from "../../components/DetailDialog/DetailDialog.styles"

export const vars_bfis = {
slug: "bfis",
Expand Down Expand Up @@ -198,6 +199,20 @@ export const vars_bfis = {
.length > 0
return <>{isFamilyHub && <FamilyHubsNetworkTag />}</>
},
DetailDialogExtra: service => {
return (
<>
<Crosshead>Part of Family Hub Network</Crosshead>
<p>
The Family Hub network helps families with babies, children, and young
people from birth until they turn 19 (or up to 25 for those with
special educational needs and disabilities). As part of the Family Hub
Network in Buckinghamshire, we are committed to making it easier for
families to get the help and support they need.
</p>
</>
)
},
}

export default vars_bfis
1 change: 1 addition & 0 deletions src/themes/theme_generator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const generate_theme = (vars, theme_vars) => {
headerComponentsBeforeSearch:
vars.headerComponentsBeforeSearch ?? vars.headerComponentsBeforeSearch,
ServiceCardFooter: vars.ServiceCardFooter ?? vars.ServiceCardFooter,
DetailDialogExtra: vars.DetailDialogExtra ?? vars.DetailDialogExtra,
cookiesDisabledMessage: vars.cookiesDisabledMessage,
cookieMessage: vars.cookieMessage,
cookieName: vars.cookieName,
Expand Down

0 comments on commit 2d8d895

Please sign in to comment.