Skip to content

Commit

Permalink
remvoe body from dialog page
Browse files Browse the repository at this point in the history
  • Loading branch information
apricot13 committed Nov 19, 2024
1 parent be5fe1c commit 392b345
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
5 changes: 1 addition & 4 deletions src/components/DetailDialog/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,8 @@ const DetailDialog = ({ serviceId, location, navigate }) => {
/>
</Body>
)}

{theme.DetailDialogExtra && (
<Body>
<theme.DetailDialogExtra service={service} />
</Body>
<theme.DetailDialogExtra service={service} />
)}
<Body>
{service.hasOwnProperty("service_at_locations") &&
Expand Down
21 changes: 12 additions & 9 deletions src/themes/bfis/vars_bfis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
FamilyHubsNetworkTag,
FamilyHubsNetworkLogo,
} from "../../components/FamilyHubsNetwork"
import { Body } from "../../components/Dialog"

export const vars_bfis = {
slug: "bfis",
Expand Down Expand Up @@ -205,18 +206,20 @@ export const vars_bfis = {
if (service.meta?.some(m => m.key === "family-hub")) {
return (
<>
<FamilyHubsNetworkLogo />
<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>
<Body>
<FamilyHubsNetworkLogo />
<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>
</Body>
</>
)
} else {
return <></>
return null
}
},
}
Expand Down

0 comments on commit 392b345

Please sign in to comment.