Refactor Pikachu template layout to conditionally render header and page picture based on isFirstPage property

This commit is contained in:
Amruth Pillai
2026-01-26 11:19:08 +01:00
parent 41b0c57725
commit 1e814a77cc
+6 -4
View File
@@ -49,10 +49,12 @@ export function PikachuTemplate({ pageIndex, pageLayout }: TemplateProps) {
)}
<main data-layout="main" className="group page-main flex-1 space-y-(--page-gap-y)">
<div className="flex items-center gap-x-6">
{fullWidth && <PagePicture />}
{isFirstPage && <Header />}
</div>
{isFirstPage && (
<div className="flex items-center gap-x-6">
{fullWidth && <PagePicture />}
<Header />
</div>
)}
<div className="space-y-(--page-gap-y)">
{main.map((section) => {