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
@@ -14,6 +14,8 @@ import IPostStatus from '../../interfaces/IPostStatus';
|
||||
|
||||
interface Props {
|
||||
posts: Array<IPost>;
|
||||
showLikeCount: boolean;
|
||||
showLikeButtons: boolean;
|
||||
postStatuses: Array<IPostStatus>;
|
||||
areLoading: boolean;
|
||||
error: string;
|
||||
@@ -27,6 +29,8 @@ interface Props {
|
||||
|
||||
const PostList = ({
|
||||
posts,
|
||||
showLikeCount,
|
||||
showLikeButtons,
|
||||
postStatuses,
|
||||
areLoading,
|
||||
error,
|
||||
@@ -53,7 +57,9 @@ const PostList = ({
|
||||
title={post.title}
|
||||
description={post.description}
|
||||
postStatus={postStatuses.find(postStatus => postStatus.id === post.postStatusId)}
|
||||
likesCount={post.likesCount}
|
||||
likeCount={post.likeCount}
|
||||
showLikeCount={showLikeCount}
|
||||
showLikeButtons={showLikeButtons}
|
||||
liked={post.liked}
|
||||
commentsCount={post.commentsCount}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user