diff --git a/src/blocks/Header/Header.tsx b/src/blocks/Header/Header.tsx index 27576b749..5d3825ea1 100644 --- a/src/blocks/Header/Header.tsx +++ b/src/blocks/Header/Header.tsx @@ -135,7 +135,11 @@ export const HeaderBlock = (props: React.PropsWithChildren {overtitle && (
- {overtitle} + {typeof overtitle === 'string' ? ( + {overtitle} + ) : ( + overtitle + )}
)}

diff --git a/src/models/constructor-items/blocks.ts b/src/models/constructor-items/blocks.ts index 6c747e2b0..dd05d21c5 100644 --- a/src/models/constructor-items/blocks.ts +++ b/src/models/constructor-items/blocks.ts @@ -164,7 +164,7 @@ export type ThemedHeaderBlockBackground = ThemeSupporting export interface HeaderBlockProps { title: string; - overtitle?: string; + overtitle?: string | JSX.Element; description?: string; buttons?: Pick[]; width?: HeaderWidth;