mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 21:06:42 +07:00
showing comments left count
This commit is contained in:
parent
911beea4ad
commit
319e66616c
9 changed files with 101 additions and 115 deletions
|
@ -31,7 +31,7 @@ type IProps = ReturnType<typeof mapStateToProps> &
|
|||
const id = 696;
|
||||
|
||||
const BorisLayoutUnconnected: FC<IProps> = ({
|
||||
node: { is_loading, is_loading_comments, comments = [], comment_data },
|
||||
node: { is_loading, is_loading_comments, comments = [], comment_data, comment_count },
|
||||
user,
|
||||
user: { is_user },
|
||||
nodeLoadNode,
|
||||
|
@ -88,6 +88,7 @@ const BorisLayoutUnconnected: FC<IProps> = ({
|
|||
<NodeComments
|
||||
comments={comments}
|
||||
comment_data={comment_data}
|
||||
comment_count={comment_count}
|
||||
user={user}
|
||||
onDelete={nodeLockComment}
|
||||
onEdit={nodeEditComment}
|
||||
|
|
|
@ -48,7 +48,15 @@ const NodeLayoutUnconnected: FC<IProps> = memo(
|
|||
match: {
|
||||
params: { id },
|
||||
},
|
||||
node: { is_loading, is_loading_comments, comments = [], current: node, related, comment_data },
|
||||
node: {
|
||||
is_loading,
|
||||
is_loading_comments,
|
||||
comments = [],
|
||||
current: node,
|
||||
related,
|
||||
comment_data,
|
||||
comment_count,
|
||||
},
|
||||
user,
|
||||
user: { is_user },
|
||||
nodeGotoNode,
|
||||
|
@ -136,9 +144,11 @@ const NodeLayoutUnconnected: FC<IProps> = memo(
|
|||
<NodeComments
|
||||
comments={comments}
|
||||
comment_data={comment_data}
|
||||
comment_count={comment_count}
|
||||
user={user}
|
||||
onDelete={nodeLockComment}
|
||||
onEdit={nodeEditComment}
|
||||
order="DESC"
|
||||
/>
|
||||
)}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue