diff options
author | Eric Bailey <git@esb.lol> | 2023-11-30 15:40:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 13:40:49 -0800 |
commit | 76a3c66f54a3647527f51caf10327d8ccf1839a9 (patch) | |
tree | e2c64e7a1f6f4fd98ba0d3723e2b490c27f011aa /src/view/com/feeds/ProfileFeedgens.tsx | |
parent | 47b0d36b7393442857d3f4cfafd88c43defe6b6c (diff) | |
download | voidsky-76a3c66f54a3647527f51caf10327d8ccf1839a9.tar.zst |
Eric/profile feeds list (#2049)
* Fix profile feedgens view * Fix profile lists view * Translate
Diffstat (limited to 'src/view/com/feeds/ProfileFeedgens.tsx')
-rw-r--r-- | src/view/com/feeds/ProfileFeedgens.tsx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/view/com/feeds/ProfileFeedgens.tsx b/src/view/com/feeds/ProfileFeedgens.tsx index 77da2fd0b..618f4e5cd 100644 --- a/src/view/com/feeds/ProfileFeedgens.tsx +++ b/src/view/com/feeds/ProfileFeedgens.tsx @@ -1,6 +1,5 @@ import React, {MutableRefObject} from 'react' import { - ActivityIndicator, Dimensions, RefreshControl, StyleProp, @@ -24,6 +23,7 @@ import {useAnimatedScrollHandler} from 'react-native-reanimated' import {useTheme} from '#/lib/ThemeContext' import {usePreferencesQuery} from '#/state/queries/preferences' import {hydrateFeedGenerator} from '#/state/queries/feed' +import {FeedLoadingPlaceholder} from '#/view/com/util/LoadingPlaceholder' const LOADING = {_reactKey: '__loading__'} const EMPTY = {_reactKey: '__empty__'} @@ -147,7 +147,7 @@ export const ProfileFeedgens = React.forwardRef< testID="listsEmpty" style={[{padding: 18, borderTopWidth: 1}, pal.border]}> <Text style={pal.textLight}> - <Trans>You have no lists.</Trans> + <Trans>You have no feeds.</Trans> </Text> </View> ) @@ -163,11 +163,7 @@ export const ProfileFeedgens = React.forwardRef< /> ) } else if (item === LOADING) { - return ( - <View style={{padding: 20}}> - <ActivityIndicator /> - </View> - ) + return <FeedLoadingPlaceholder /> } if (preferences) { return ( @@ -175,6 +171,7 @@ export const ProfileFeedgens = React.forwardRef< feed={item} preferences={preferences} style={styles.item} + showLikes /> ) } @@ -221,6 +218,5 @@ export const ProfileFeedgens = React.forwardRef< const styles = StyleSheet.create({ item: { paddingHorizontal: 18, - paddingVertical: 4, }, }) |