Points #78
|
|
@ -22,15 +22,6 @@ 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.sub_title) ||
|
|
||||||
asString(attributes.content_label) ||
|
|
||||||
(asString(attributes.title) && asString(attributes.title) !== title
|
|
||||||
? asString(attributes.title)
|
|
||||||
: null) ||
|
|
||||||
asString(attributes.description) ||
|
|
||||||
item.summary ||
|
|
||||||
null;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Pressable
|
<Pressable
|
||||||
|
|
@ -44,11 +35,6 @@ 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}>
|
|
||||||
{label}
|
|
||||||
</Text>
|
|
||||||
) : null}
|
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<ContentCountBadge
|
<ContentCountBadge
|
||||||
|
|
@ -87,10 +73,5 @@ const styles = StyleSheet.create({
|
||||||
fontSize: moderateScale(15),
|
fontSize: moderateScale(15),
|
||||||
fontWeight: "600",
|
fontWeight: "600",
|
||||||
color: Colors.textPrimary,
|
color: Colors.textPrimary,
|
||||||
marginBottom: verticalScale(2),
|
|
||||||
},
|
|
||||||
description: {
|
|
||||||
fontSize: moderateScale(12),
|
|
||||||
color: Colors.textSecondary,
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue