diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-21 18:55:08 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-21 18:55:08 -0600 |
commit | e858bb52de180645bba4f5ffa2f8bc0cfe8ad1fe (patch) | |
tree | 120b5be2ed657b7f8d30d56016d1a0857bb98086 /src/view/com/post/Post.tsx | |
parent | b2dba9a15b0b27c9221808ff037090c2b4c2d500 (diff) | |
parent | 7e487fd5ae053ebb4373b85f1b3d7aa66f8a0241 (diff) | |
download | voidsky-e858bb52de180645bba4f5ffa2f8bc0cfe8ad1fe.tar.zst |
Merge branch 'simplify' into main
Diffstat (limited to 'src/view/com/post/Post.tsx')
-rw-r--r-- | src/view/com/post/Post.tsx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index a5c084570..10f8048f0 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -85,11 +85,6 @@ export const Post = observer(function Post({uri}: {uri: string}) { .toggleUpvote() .catch(e => console.error('Failed to toggle upvote', record, e)) } - const onPressToggleDownvote = () => { - item - .toggleDownvote() - .catch(e => console.error('Failed to toggle downvote', record, e)) - } const onDeletePost = () => { item.delete().then( () => { @@ -154,14 +149,11 @@ export const Post = observer(function Post({uri}: {uri: string}) { replyCount={item.replyCount} repostCount={item.repostCount} upvoteCount={item.upvoteCount} - downvoteCount={item.downvoteCount} isReposted={!!item.myState.repost} isUpvoted={!!item.myState.upvote} - isDownvoted={!!item.myState.downvote} onPressReply={onPressReply} onPressToggleRepost={onPressToggleRepost} onPressToggleUpvote={onPressToggleUpvote} - onPressToggleDownvote={onPressToggleDownvote} /> </View> </View> |