|
1 | 1 | "use server"; |
2 | 2 |
|
3 | 3 | import { auth } from "@project/auth"; |
4 | | -import { Callout } from "@src/app/_components/content/Callout"; |
| 4 | +import Callout from "@src/app/_components/content/Callout"; |
5 | 5 | import { FindOutMoreLink } from "@src/app/_components/content/FindOutMore"; |
6 | 6 | import { HowToGetVaccineFallback } from "@src/app/_components/content/HowToGetVaccineFallback"; |
7 | 7 | import { MoreInformation } from "@src/app/_components/content/MoreInformation"; |
8 | 8 | import { Overview } from "@src/app/_components/content/Overview"; |
| 9 | +import Recommendation from "@src/app/_components/content/Recommendation"; |
9 | 10 | import { EligibilityVaccinePageContent } from "@src/app/_components/eligibility/EligibilityVaccinePageContent"; |
10 | | -import NonUrgentCareCard from "@src/app/_components/nhs-frontend/NonUrgentCareCard"; |
11 | 11 | import { RSVPregnancyInfo } from "@src/app/_components/vaccine-custom/RSVPregnancyInfo"; |
12 | 12 | import { NhsNumber, VaccineDetails, VaccineInfo, VaccineType } from "@src/models/vaccine"; |
13 | 13 | import { getContentForVaccine } from "@src/services/content-api/content-service"; |
@@ -69,15 +69,8 @@ const VaccineComponent = async ({ vaccineType }: VaccineProps): Promise<JSX.Elem |
69 | 69 | {contentError != ContentErrorTypes.CONTENT_LOADING_ERROR && styledVaccineContent != undefined && ( |
70 | 70 | <> |
71 | 71 | <Overview styledVaccineContent={styledVaccineContent} vaccineType={vaccineType} /> |
| 72 | + <Recommendation styledVaccineContent={styledVaccineContent} /> |
72 | 73 | <Callout styledVaccineContent={styledVaccineContent} vaccineType={vaccineType} /> |
73 | | - {styledVaccineContent.recommendation && ( |
74 | | - <div data-testid="recommendation"> |
75 | | - <NonUrgentCareCard |
76 | | - heading={styledVaccineContent.recommendation.heading} |
77 | | - content={styledVaccineContent.recommendation.component} |
78 | | - /> |
79 | | - </div> |
80 | | - )} |
81 | 74 | </> |
82 | 75 | )} |
83 | 76 |
|
|
0 commit comments