Compare commits

...

1 Commits
main ... eov

Author SHA1 Message Date
ShivaniKhaire 124685b712 fix pathway using bullet list 2026-10-17 17:05:48 +05:30
1 changed files with 14 additions and 1 deletions

View File

@ -137,12 +137,25 @@ export function EovDetailRenderer({
}
if (!isEmptyValue(data.pathway)) {
const pathwayItems = Array.isArray(data.pathway)
? asStringArray(data.pathway)
: typeof data.pathway === "string"
? data.pathway
.split(/(?<=[.!?])\s+/)
.map((s) => s.trim())
.filter((s) => s.length > 0)
: [];
items.push({
key: "pathway",
order: orderFor("pathway", 120),
render: () => (
<SectionCard title="Pathway">
<Text style={styles.pathway}>{asString(data.pathway)}</Text>
{pathwayItems.length > 0 ? (
<BulletList items={pathwayItems} />
) : (
<Text style={styles.pathway}>{asString(data.pathway)}</Text>
)}
</SectionCard>
),
});