ariculratherapy #103

Merged
amit merged 3 commits from ariculratherapy into main 2026-11-02 04:43:08 +00:00
1 changed files with 1 additions and 9 deletions
Showing only changes of commit 2925ae4e28 - Show all commits

View File

@ -11,11 +11,6 @@ import { SectionCard } from "./shared/SectionCard";
const RESERVED_KEYS = new Set(["code", "id", "slug", "sort_order", "link"]);
const ATTRIBUTE_LABEL_OVERRIDES: Record<string, string> = {
m_p: "Main Points",
s_p: "Supplementary Points",
};
/**
* Generic detail renderer for modules and catalog items.
*
@ -65,10 +60,7 @@ export function GenericDetailRenderer({
!(isTherapeutic && key.toLowerCase() === "name"),
)
.map(([key, value]) => {
const rawLabel =
ATTRIBUTE_LABEL_OVERRIDES[key.toLowerCase()] ||
definitionMap.get(key) ||
key;
const rawLabel = definitionMap.get(key) || key;
const label = humanizeKey(rawLabel);
return (
<SectionCard key={key} title={label}>