Compare commits
No commits in common. "c793ea27c7a03b97f1766368bf62881efccfdaa7" and "08e954bba0710ea813a673bb6bd807484f53abaf" have entirely different histories.
c793ea27c7
...
08e954bba0
|
|
@ -3,6 +3,7 @@ import { ScrollView } from "react-native";
|
||||||
|
|
||||||
import type { DetailRendererProps } from "../types/renderer.types";
|
import type { DetailRendererProps } from "../types/renderer.types";
|
||||||
import { humanizeKey } from "./helpers/value";
|
import { humanizeKey } from "./helpers/value";
|
||||||
|
import { ContentLinkAttributeSections } from "./shared/ContentLinkAttributeSections";
|
||||||
import { ContentValue } from "./shared/ContentValue";
|
import { ContentValue } from "./shared/ContentValue";
|
||||||
import { Hero } from "./shared/Hero";
|
import { Hero } from "./shared/Hero";
|
||||||
import { ImageGallery } from "./shared/ImageGallery";
|
import { ImageGallery } from "./shared/ImageGallery";
|
||||||
|
|
@ -22,6 +23,7 @@ export function GenericDetailRenderer({
|
||||||
moduleCode,
|
moduleCode,
|
||||||
templateCode,
|
templateCode,
|
||||||
definitions,
|
definitions,
|
||||||
|
presentationAttributes,
|
||||||
}: DetailRendererProps) {
|
}: DetailRendererProps) {
|
||||||
const isTherapeutic = Boolean(
|
const isTherapeutic = Boolean(
|
||||||
moduleCode?.toLowerCase().startsWith("m004") ||
|
moduleCode?.toLowerCase().startsWith("m004") ||
|
||||||
|
|
@ -66,6 +68,11 @@ export function GenericDetailRenderer({
|
||||||
</SectionCard>
|
</SectionCard>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
<ContentLinkAttributeSections
|
||||||
|
data={data}
|
||||||
|
definitions={definitions}
|
||||||
|
presentationAttributes={presentationAttributes}
|
||||||
|
/>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue