diff --git a/src/features/content/renderers/details/FiveElementsDetailRenderer.tsx b/src/features/content/renderers/details/FiveElementsDetailRenderer.tsx index 0f3f374..1a5edf7 100644 --- a/src/features/content/renderers/details/FiveElementsDetailRenderer.tsx +++ b/src/features/content/renderers/details/FiveElementsDetailRenderer.tsx @@ -8,6 +8,8 @@ import { Colors } from "@/theme"; import type { DetailRendererProps } from "../../types/renderer.types"; import { ContentLinkAttributeSections } from "../shared/ContentLinkAttributeSections"; import { Hero } from "../shared/Hero"; +import { Paragraphs } from "../shared/Paragraphs"; +import { SectionCard } from "../shared/SectionCard"; import { asRecordArray, asString, asStringArray } from "../helpers/value"; function resolveSequenceTargetTemplate( @@ -195,37 +197,23 @@ export function FiveElementsDetailRenderer({ ) : null} - {/* Numbered Pattern Cards from data.sections */} - {rawSections.length > 0 ? ( - - Patterns & Manifestations - {rawSections.map((sec, idx) => { - const sectionTitle = asString(sec.title) || `Pattern ${idx + 1}`; - const sectionContent = extractParagraphs(sec.content); + {/* Collapsible Pattern Cards from data.sections */} + {rawSections.map((sec, idx) => { + const sectionTitle = asString(sec.title) || `Pattern ${idx + 1}`; + const sectionContent = extractParagraphs(sec.content); - return ( - - - - {idx + 1} - - {sectionTitle} - - - {sectionContent.length > 0 ? ( - - {sectionContent.map((text, cIdx) => ( - - {text} - - ))} - - ) : null} - - ); - })} - - ) : null} + return ( + + {sectionContent.length > 0 ? ( + + ) : null} + + ); + })}