Points #78

Merged
amit merged 8 commits from Points into main 2026-10-26 02:19:52 +00:00
1 changed files with 0 additions and 19 deletions
Showing only changes of commit d3e4037051 - Show all commits

View File

@ -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,
}, },
}); });