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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user