From a4c6dd6b1ead07e5606146408e3d78a24dc5977a Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 17 May 2023 14:24:27 -0500 Subject: Tune up the custom feed card rendering --- src/view/com/feeds/CustomFeed.tsx | 71 ++++++++++++++------------------- src/view/com/feeds/SavedFeedItem.tsx | 9 +---- src/view/com/util/post-embeds/index.tsx | 14 +++++-- src/view/screens/Profile.tsx | 4 +- 4 files changed, 44 insertions(+), 54 deletions(-) (limited to 'src') diff --git a/src/view/com/feeds/CustomFeed.tsx b/src/view/com/feeds/CustomFeed.tsx index 2137081f3..edadada9c 100644 --- a/src/view/com/feeds/CustomFeed.tsx +++ b/src/view/com/feeds/CustomFeed.tsx @@ -16,21 +16,21 @@ import {CustomFeedModel} from 'state/models/feeds/custom-feed' import {useFocusEffect, useNavigation} from '@react-navigation/native' import {NavigationProp} from 'lib/routes/types' import {useStores} from 'state/index' -import {HeartIconSolid} from 'lib/icons' +import {HeartIcon, HeartIconSolid} from 'lib/icons' import {pluralize} from 'lib/strings/helpers' import {AtUri} from '@atproto/api' import {isWeb} from 'platform/detection' -const CustomFeed = observer( +export const CustomFeed = observer( ({ item, style, - showBottom = true, + showLikes = false, reloadOnFocus = false, }: { item: CustomFeedModel style?: StyleProp - showBottom?: boolean + showLikes?: boolean reloadOnFocus?: boolean }) => { const store = useStores() @@ -67,52 +67,43 @@ const CustomFeed = observer( {item.data.displayName ?? 'Feed name'} - - {item.data.description ?? - "Explore our Feed for the latest updates and insights! Dive into a world of intriguing articles, trending news, and exciting stories that cover a wide range of topics. From technology breakthroughs to lifestyle tips, there's something here for everyone. Stay informed and get inspired with us. Join the conversation now!"} - + by @{item.data.creator.handle} + + +