Compare commits
No commits in common. "abcb9823c2e1082c3ca6275869f8561f2d4000fc" and "ec115ba9ce078dd62743d36c0100097d3cfd2922" have entirely different histories.
abcb9823c2
...
ec115ba9ce
|
|
@ -22,7 +22,7 @@ export function ModuleCatalogCardRenderer({
|
||||||
}: CollectionItemRendererProps) {
|
}: CollectionItemRendererProps) {
|
||||||
const attributes = item.attributes;
|
const attributes = item.attributes;
|
||||||
const title = asString(attributes.name) || item.title;
|
const title = asString(attributes.name) || item.title;
|
||||||
const label = asString(attributes.content_label) || item.summary || null;
|
const label = asString(attributes.content_label) || item.summary || "Open content";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Pressable
|
<Pressable
|
||||||
|
|
@ -36,11 +36,9 @@ export function ModuleCatalogCardRenderer({
|
||||||
|
|
||||||
<View style={styles.textContainer}>
|
<View style={styles.textContainer}>
|
||||||
<Text style={styles.title}>{title}</Text>
|
<Text style={styles.title}>{title}</Text>
|
||||||
{label ? (
|
<Text style={styles.description} numberOfLines={1}>
|
||||||
<Text style={styles.description} numberOfLines={1}>
|
{label}
|
||||||
{label}
|
</Text>
|
||||||
</Text>
|
|
||||||
) : null}
|
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<ContentCountBadge
|
<ContentCountBadge
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue