diff --git a/www/src/components/HomePage.astro b/www/src/components/HomePage.astro index 685f7ff..dc21479 100644 --- a/www/src/components/HomePage.astro +++ b/www/src/components/HomePage.astro @@ -38,34 +38,32 @@ function fromHomeContent(home: HomePageContent): HomeSection[] { const sections: HomeSection[] = entry.data.home ? fromHomeContent(entry.data.home) : ((entry.data.sections ?? []) as HomeSection[]); - -function renderSection(section: HomeSection) { - switch (section.type) { - case 'hero': - return ; - case 'services-intro': - return ; - case 'benefits': - return ; - case 'skills': - return ; - case 'insurance': - return ; - case 'esa': - return ; - case 'financial-help': - return ; - case 'process': - return ; - case 'director': - return ; - case 'testimonials': - return ; - } - - return null; -} --- - {sections.map(renderSection)} + {sections.map((section) => { + switch (section.type) { + case 'hero': + return ; + case 'services-intro': + return ; + case 'benefits': + return ; + case 'skills': + return ; + case 'insurance': + return ; + case 'esa': + return ; + case 'financial-help': + return ; + case 'process': + return ; + case 'director': + return ; + case 'testimonials': + return ; + default: + return null; + } + })}