From 6f69157269b27c4bae9730334f93f295ef0d4b94 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 6 Jul 2023 21:12:54 -0500 Subject: Post UI updates (Profile Preview on mobile) (#990) * Update postmeta to put the timestamp on the right side on mobile * Drop the two-line PostMeta mode * Add ProfilePreview modal * Tune PostMeta to give the best behavior possible for a given platform * Remove old showFollowBtn attributes * Fix style issue * Switch the follow button in the profile header to use the inverted color for consistency with the rest of the app * Fix lint * Fix darkmode * Tune the profile preview footer * Better analytics choice --- src/view/com/posts/MultiFeed.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/view/com/posts/MultiFeed.tsx') diff --git a/src/view/com/posts/MultiFeed.tsx b/src/view/com/posts/MultiFeed.tsx index 466a7a47d..97899e554 100644 --- a/src/view/com/posts/MultiFeed.tsx +++ b/src/view/com/posts/MultiFeed.tsx @@ -28,7 +28,6 @@ import {CogIcon} from 'lib/icons' export const MultiFeed = observer(function Feed({ multifeed, style, - showPostFollowBtn, scrollElRef, onScroll, scrollEventThrottle, @@ -38,7 +37,6 @@ export const MultiFeed = observer(function Feed({ }: { multifeed: PostsMultiFeedModel style?: StyleProp - showPostFollowBtn?: boolean scrollElRef?: MutableRefObject | null> onPressTryAgain?: () => void onScroll?: OnScrollCb @@ -105,9 +103,7 @@ export const MultiFeed = observer(function Feed({ ) } else if (item.type === 'feed-slice') { - return ( - - ) + return } else if (item.type === 'feed-loading') { return } else if (item.type === 'feed-error') { @@ -139,7 +135,7 @@ export const MultiFeed = observer(function Feed({ } return null }, - [showPostFollowBtn, pal], + [pal], ) const ListFooter = React.useCallback( -- cgit 1.4.1