horizontal list doesn't display see more if there are no items

This commit is contained in:
Violet Caulfield
2025-02-12 22:23:56 -06:00
parent b4f2cce637
commit ce2317c2d5

View File

@@ -37,7 +37,8 @@ export default function HorizontalCardList({
horizontal
data={items?.slice(0, cutoff - 1) ?? undefined}
renderItem={renderItem}
ListFooterComponent={(
ListFooterComponent={() => {
return items ? (
<IconCard
name={
squared
@@ -48,7 +49,8 @@ export default function HorizontalCardList({
caption="See More"
onPress={onSeeMore}
/>
)}
) : undefined}
}
/>
)
}