fix(catalog): remove sub name from module catalog cards

This commit is contained in:
ShivaniKhaire 2026-10-22 16:22:18 +05:30
parent 2fce0e3192
commit d3e4037051
1 changed files with 0 additions and 19 deletions

View File

@ -22,15 +22,6 @@ export function ModuleCatalogCardRenderer({
}: CollectionItemRendererProps) {
const attributes = item.attributes;
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 (
<Pressable
@ -44,11 +35,6 @@ export function ModuleCatalogCardRenderer({
<View style={styles.textContainer}>
<Text style={styles.title}>{title}</Text>
{label ? (
<Text style={styles.description} numberOfLines={1}>
{label}
</Text>
) : null}
</View>
<ContentCountBadge
@ -87,10 +73,5 @@ const styles = StyleSheet.create({
fontSize: moderateScale(15),
fontWeight: "600",
color: Colors.textPrimary,
marginBottom: verticalScale(2),
},
description: {
fontSize: moderateScale(12),
color: Colors.textSecondary,
},
});