fix: resolve homepage and tools hero inversion, remove acne references, restore centered directory heroes across all routes
This commit is contained in:
@@ -77,12 +77,11 @@ function SectionContent({ section, context }: SectionRendererProps) {
|
||||
|
||||
switch (section.type) {
|
||||
case 'hero': {
|
||||
const isHomePage = (context.page?.slug === 'home' || context.page?.id === 'home') && !context.tool;
|
||||
return (
|
||||
<HeroSection
|
||||
{...resolvedProps}
|
||||
variant={section.variant}
|
||||
tool={isHomePage ? undefined : (context.tool || undefined)}
|
||||
tool={context.tool || undefined}
|
||||
homeApp={context.homeApp || undefined}
|
||||
variants={context.variants}
|
||||
locale={locale}
|
||||
|
||||
Reference in New Issue
Block a user