mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-28 14:16:41 +07:00
comment form
This commit is contained in:
parent
9531edcd19
commit
1990783fa3
9 changed files with 67 additions and 33 deletions
|
@ -35,8 +35,8 @@ const setComments = (state: INodeState, { comments }: ReturnType<typeof nodeSetC
|
|||
|
||||
const setCommentData = (
|
||||
state: INodeState,
|
||||
{ comment_data }: ReturnType<typeof nodeSetCommentData>
|
||||
) => assocPath(['comment_data'], comment_data, state);
|
||||
{ id, comment }: ReturnType<typeof nodeSetCommentData>
|
||||
) => assocPath(['comment_data', id], comment, state);
|
||||
|
||||
export const NODE_HANDLERS = {
|
||||
[NODE_ACTIONS.SAVE]: setSaveErrors,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue