Skip to content

Commit

Permalink
fix post view
Browse files Browse the repository at this point in the history
  • Loading branch information
kualta committed Jun 29, 2024
1 parent ccc1187 commit 65c80a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/components/post/PostReactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import type { Post, PostReactionType } from "./Post";
export function ReactionsList({
post,
collapsed,
setCommentsOpen,
isCommentsOpen,
}: { post: Post; collapsed: boolean; setCommentsOpen: (open: boolean) => void; isCommentsOpen: boolean }) {
const [isLiked, setIsLiked] = useState(post.reactions.isUpvoted);
const [isReposted, setIsReposted] = useState(post.reactions.isReposted);
Expand Down Expand Up @@ -109,7 +107,7 @@ export function ReactionsList({
variant="ghost"
onClick={(e) => {
e.stopPropagation();
setCommentsOpen(!isCommentsOpen);
// setCommentsOpen(!isCommentsOpen);
}}
className="h-max w-12 border-0 px-0 place-content-center items-center"
disabled={!post.reactions.canComment}
Expand Down
2 changes: 1 addition & 1 deletion src/components/post/PostView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const PostView = ({
<PostInfo post={post} />
<PostContent post={post} />
{settings?.showBadges && (
<ReactionsList collapsed={false} isCommentsOpen={false} setCommentsOpen={() => {}} post={post} />
<ReactionsList collapsed={false} post={post} />
)}
</div>
</div>
Expand Down

0 comments on commit 65c80a4

Please sign in to comment.