fix(template): fix gengar template summary section not rendering in sidebar

This commit is contained in:
Alay Naru
2025-10-12 18:49:44 +05:30
parent 4efdabd475
commit 2de24d5b55

View File

@ -531,6 +531,10 @@ const mapSectionToComponent = (section: SectionKey) => {
case "education": {
return <Education />;
}
case "summary": {
return <Summary />;
}
case "awards": {
return <Awards />;
}
@ -592,8 +596,6 @@ export const Gengar = ({ columns, isFirstPage = false }: TemplateProps) => {
</div>
<div className={cn("main group", sidebar.length > 0 ? "col-span-2" : "col-span-3")}>
{isFirstPage && <Summary />}
<div className="p-custom space-y-4">
{main.map((section) => (
<Fragment key={section}>{mapSectionToComponent(section)}</Fragment>