Skip to content

Commit a43c63a

Browse files
CHORE SB Add VaccinePageContent refactoring TODO.
1 parent f9b2013 commit a43c63a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/services/content-api/types.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ export type VaccinePageContent = {
115115
webpageLink: URL;
116116
};
117117

118+
// TODO Refactor VaccinePageContent to something like this:
119+
// export type OverviewSection = SimpleOverviewSection | CalloutSubsection | RecommendationSubsection;
120+
// export type VaccinePageContent = {
121+
// overviewSections: OverviewSection[];
122+
// moreInformationSections: VaccinePageSection[];
123+
// webpageLink: URL;
124+
// }
125+
// This would allow us to have a variable number of overview sections, of various types, in any order, and the same thing with more info expanders.
126+
118127
export type StyledPageSection = {
119128
heading: string;
120129
component: JSX.Element;

0 commit comments

Comments
 (0)