mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Add setting to manage visibility of vote count, vote button and decide root page (#197)
This commit is contained in:
committed by
GitHub
parent
d4242dd78e
commit
e7335f5622
@@ -12,7 +12,9 @@ interface Props {
|
||||
title: string;
|
||||
description?: string;
|
||||
postStatus: IPostStatus;
|
||||
likesCount: number;
|
||||
likeCount: number;
|
||||
showLikeCount: boolean;
|
||||
showLikeButtons: boolean;
|
||||
liked: number;
|
||||
commentsCount: number;
|
||||
|
||||
@@ -25,7 +27,9 @@ const PostListItem = ({
|
||||
title,
|
||||
description,
|
||||
postStatus,
|
||||
likesCount,
|
||||
likeCount,
|
||||
showLikeCount,
|
||||
showLikeButtons,
|
||||
liked,
|
||||
commentsCount,
|
||||
|
||||
@@ -35,7 +39,9 @@ const PostListItem = ({
|
||||
<div onClick={() => window.location.href = `/posts/${id}`} className="postListItem">
|
||||
<LikeButton
|
||||
postId={id}
|
||||
likesCount={likesCount}
|
||||
likeCount={likeCount}
|
||||
showLikeCount={showLikeCount}
|
||||
showLikeButton={showLikeButtons}
|
||||
liked={liked}
|
||||
isLoggedIn={isLoggedIn}
|
||||
authenticityToken={authenticityToken}
|
||||
|
||||
Reference in New Issue
Block a user