mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
comment rendering
This commit is contained in:
parent
398f44e232
commit
9531edcd19
10 changed files with 83 additions and 37 deletions
|
@ -33,9 +33,7 @@ export const nodeSetCurrent = (current: INodeState['current']) => ({
|
|||
type: NODE_ACTIONS.SET_CURRENT,
|
||||
});
|
||||
|
||||
export const nodePostComment = (data: IComment, id: INode['id']) => ({
|
||||
data,
|
||||
id,
|
||||
export const nodePostComment = () => ({
|
||||
type: NODE_ACTIONS.POST_COMMENT,
|
||||
});
|
||||
|
||||
|
@ -48,3 +46,8 @@ export const nodeSetComments = (comments: IComment[]) => ({
|
|||
comments,
|
||||
type: NODE_ACTIONS.SET_COMMENTS,
|
||||
});
|
||||
|
||||
export const nodeSetCommentData = (comment_data: IComment) => ({
|
||||
comment_data,
|
||||
type: NODE_ACTIONS.SET_COMMENT_DATA,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue