diff options
Diffstat (limited to 'src/view/com/lists/ProfileLists.tsx')
-rw-r--r-- | src/view/com/lists/ProfileLists.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/view/com/lists/ProfileLists.tsx b/src/view/com/lists/ProfileLists.tsx index 003d1c60e..d1ef05f12 100644 --- a/src/view/com/lists/ProfileLists.tsx +++ b/src/view/com/lists/ProfileLists.tsx @@ -1,6 +1,7 @@ import React from 'react' import { findNodeHandle, + ListRenderItemInfo, StyleProp, StyleSheet, View, @@ -138,12 +139,10 @@ export const ProfileLists = React.forwardRef<SectionRef, ProfileListsProps>( // = const renderItemInner = React.useCallback( - ({item}: {item: any}) => { + ({item, index}: ListRenderItemInfo<any>) => { if (item === EMPTY) { return ( - <View - testID="listsEmpty" - style={[{padding: 18, borderTopWidth: 1}, pal.border]}> + <View testID="listsEmpty" style={[{padding: 18}, pal.border]}> <Text style={pal.textLight}> <Trans>You have no lists.</Trans> </Text> @@ -173,6 +172,7 @@ export const ProfileLists = React.forwardRef<SectionRef, ProfileListsProps>( list={item} testID={`list-${item.name}`} style={styles.item} + noBorder={index === 0} /> ) }, |