1
0
Fork 0
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:
muerwre 2019-08-27 13:37:53 +07:00
parent 398f44e232
commit 9531edcd19
10 changed files with 83 additions and 37 deletions

View file

@ -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,
});