put back community tag in feed, kept removed from post details

This commit is contained in:
Nouman Tahir 2021-07-24 20:30:49 +05:00
parent d2627491d8
commit 408fbc87a4
2 changed files with 10 additions and 1 deletions

View File

@ -89,6 +89,16 @@ class PostHeaderDescription extends PureComponent {
</View> </View>
</View> </View>
<View style={styles.rightContainer}> <View style={styles.rightContainer}>
{content && (
<TouchableOpacity>
<Tag
isPostCardTag={!isPromoted}
isPin
value={content.category}
communityTitle={content.community_title}
/>
</TouchableOpacity>
)}
{!!tag && ( {!!tag && (
<TouchableOpacity onPress={() => tagOnPress && tagOnPress()}> <TouchableOpacity onPress={() => tagOnPress && tagOnPress()}>
<Tag isPostCardTag={!isPromoted} isPin value={tag} /> <Tag isPostCardTag={!isPromoted} isPin value={tag} />

View File

@ -221,7 +221,6 @@ const PostDisplayView = ({
name={author || post.author} name={author || post.author}
currentAccountUsername={name} currentAccountUsername={name}
reputation={post.author_reputation} reputation={post.author_reputation}
content={post}
size={36} size={36}
/> />
<PostBody body={post.body} onLoadEnd={_handleOnPostBodyLoad} /> <PostBody body={post.body} onLoadEnd={_handleOnPostBodyLoad} />