diff options
author | Eric Bailey <git@esb.lol> | 2023-12-18 16:38:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 14:38:59 -0800 |
commit | 8df4fd4d570d64e794e8929353d6b7360928476b (patch) | |
tree | 35ad1268eaf24331cd76608b07d153300f3f1a29 /src/view/com/post-thread/PostThreadItem.tsx | |
parent | 726bbd2b6d713432b8e45b21f57fb8f384f5a339 (diff) | |
download | voidsky-8df4fd4d570d64e794e8929353d6b7360928476b.tar.zst |
Move label appeal to post dropdown (#2236)
* Move appeal from post to dropdown * Translate * Tweak copy on the appeal label modal --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/view/com/post-thread/PostThreadItem.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index e6adfc85b..2ff803071 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -42,7 +42,6 @@ import {useComposerControls} from '#/state/shell/composer' import {useModerationOpts} from '#/state/queries/preferences' import {Shadow, usePostShadow, POST_TOMBSTONE} from '#/state/cache/post-shadow' import {ThreadPost} from '#/state/queries/post-thread' -import {LabelInfo} from '../util/moderation/LabelInfo' import {useSession} from '#/state/session' import {WhoCanReply} from '../threadgate/WhoCanReply' @@ -335,6 +334,9 @@ let PostThreadItemLoaded = ({ postCid={post.cid} postUri={post.uri} record={record} + showAppealLabelItem={ + post.author.did === currentAccount?.did && !isSelfLabeledPost + } style={{ paddingVertical: 6, paddingHorizontal: 10, @@ -354,13 +356,6 @@ let PostThreadItemLoaded = ({ includeMute style={styles.alert} /> - {post.author.did === currentAccount?.did && !isSelfLabeledPost ? ( - <LabelInfo - details={{uri: post.uri, cid: post.cid}} - labels={post.labels} - style={{marginBottom: 8}} - /> - ) : null} {richText?.text ? ( <View style={[ |