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

node edit and like buttons + actions

This commit is contained in:
Fedor Katurov 2019-10-22 12:17:45 +07:00
parent f4c337b255
commit 249a9b368c
7 changed files with 117 additions and 28 deletions

View file

@ -71,7 +71,12 @@ export const nodeCreate = (node_type: INode['type']) => ({
});
export const nodeEdit = (id: INode['id']) => ({
type: NODE_ACTIONS.CREATE,
type: NODE_ACTIONS.EDIT,
id,
});
export const nodeLike = (id: INode['id']) => ({
type: NODE_ACTIONS.LIKE,
id,
});