diff --git a/app/components/PageBlocks.tsx b/app/components/PageBlocks.tsx index 908b804..f5d5686 100644 --- a/app/components/PageBlocks.tsx +++ b/app/components/PageBlocks.tsx @@ -93,7 +93,7 @@ export function renderPageBlockSync(block: PageBlock): React.ReactNode { return ; case "quote": - return {block.text}; + return {block.text}; case "icon": { const SymbolIcon = SYMBOLIC_ICONS[block.icon]; diff --git a/app/components/Quote.tsx b/app/components/Quote.tsx index 5515c9c..1e7473b 100644 --- a/app/components/Quote.tsx +++ b/app/components/Quote.tsx @@ -1,11 +1,17 @@ +import { QuoteLabel } from "./QuoteLabel"; + // Same visual language as RichText.tsx's Quote converter (Caveat script + // brand divider) — extracted here so PageBlocks.tsx (and any future hand- // written page) can reuse it instead of each page defining its own copy, // which is what /lebensuhr, /3x3-system, and /ueber-mich each did before -// this existed. -export function Quote({ children }: { children: React.ReactNode }) { +// this existed. `label` was dropped in that extraction (this component had +// no prop for it at all) — QuoteBlock.label was set in the admin but never +// actually reached the page, unlike RichText.tsx's own local Quote, which +// this now matches. +export function Quote({ label, children }: { label?: string | null; children: React.ReactNode }) { return (
+ {label && }

{children}