From b6f3a234da215a0c0f3967d04a921e82e4b5a259 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Sat, 5 Nov 2022 13:48:45 -0500 Subject: Replace likes with votes on post UIs --- src/view/com/posts/FeedItem.tsx | 79 ++++++----------------------------------- 1 file changed, 11 insertions(+), 68 deletions(-) (limited to 'src/view/com/posts/FeedItem.tsx') diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index 5164ad12d..257690d05 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -9,6 +9,7 @@ import {SharePostModel} from '../../../state/models/shell' import {Link} from '../util/Link' import {PostDropdownBtn} from '../util/DropdownBtn' import {UserInfoText} from '../util/UserInfoText' +import {PostCtrls} from '../util/PostCtrls' import {RichText} from '../util/RichText' import {UserAvatar} from '../util/UserAvatar' import {s, colors} from '../../lib/styles' @@ -126,52 +127,16 @@ export const FeedItem = observer(function FeedItem({ style={[s.f15, s['lh15-1.3']]} /> - - - - {item.replyCount} - - - - - {item.repostCount} - - - - - - {item.likeCount} - - - onPressShare(item.uri)}> - - - + @@ -221,26 +186,4 @@ const styles = StyleSheet.create({ postText: { fontFamily: 'Helvetica Neue', }, - ctrls: { - flexDirection: 'row', - }, - ctrl: { - flexDirection: 'row', - alignItems: 'center', - flex: 1, - paddingLeft: 4, - paddingRight: 4, - }, - ctrlIcon: { - marginRight: 5, - color: colors.gray5, - }, - ctrlIconReposted: { - marginRight: 5, - color: colors.green3, - }, - ctrlIconLiked: { - marginRight: 5, - color: colors.red3, - }, }) -- cgit 1.4.1