1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

comment form

This commit is contained in:
muerwre 2019-08-27 21:33:46 +07:00
parent 9531edcd19
commit 1990783fa3
9 changed files with 67 additions and 33 deletions

View file

@ -33,7 +33,8 @@ export const nodeSetCurrent = (current: INodeState['current']) => ({
type: NODE_ACTIONS.SET_CURRENT,
});
export const nodePostComment = () => ({
export const nodePostComment = (id: number) => ({
id,
type: NODE_ACTIONS.POST_COMMENT,
});
@ -47,7 +48,8 @@ export const nodeSetComments = (comments: IComment[]) => ({
type: NODE_ACTIONS.SET_COMMENTS,
});
export const nodeSetCommentData = (comment_data: IComment) => ({
comment_data,
export const nodeSetCommentData = (id: number, comment: IComment) => ({
id,
comment,
type: NODE_ACTIONS.SET_COMMENT_DATA,
});