Fix Page Builder's QuoteBlock label being silently ignored

app/components/Quote.tsx (the shared component PageBlocks.tsx/Pages.layout
uses) never had a `label` prop at all — dropped when it was extracted from
RichText.tsx's own local Quote. QuoteBlock.label was set correctly in the
admin and mapped through payload.ts, but PageBlocks.tsx's "quote" case
never passed it through, and even if it had, this component had nowhere
to put it. Both fixed; matches RichText.tsx's existing label treatment.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J1Hu5bZ1kZUgKhab6yNwCt
This commit is contained in:
Marco
2026-08-26 22:50:11 +00:00
parent 1d7f49217c
commit a2d4cb29fc
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ export function renderPageBlockSync(block: PageBlock): React.ReactNode {
return <RichText key={block.id} content={block.content} />;
case "quote":
return <Quote key={block.id}>{block.text}</Quote>;
return <Quote key={block.id} label={block.label}>{block.text}</Quote>;
case "icon": {
const SymbolIcon = SYMBOLIC_ICONS[block.icon];