frontend-plugin-api: added noHeader param for page blueprint

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-02-13 13:59:04 +01:00
parent d2705be180
commit 4d2b2642c0
22 changed files with 46 additions and 9 deletions
+9 -7
View File
@@ -73,18 +73,20 @@ export const PageLayout = SwappableComponentBlueprint.make({
define({
component: SwappablePageLayout,
loader: () => (props: PageLayoutProps) => {
const { title, icon, headerActions, tabs, children } = props;
const { title, icon, noHeader, headerActions, tabs, children } = props;
return (
<Flex
direction="column"
style={{ flexGrow: 1, minHeight: 0, gap: 0 }}
>
<Header
title={title}
icon={icon}
tabs={tabs}
customActions={headerActions}
/>
{!noHeader && (
<Header
title={title}
icon={icon}
tabs={tabs}
customActions={headerActions}
/>
)}
<main
style={{
flex: '1 1 0',