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:
parent
f4c337b255
commit
249a9b368c
7 changed files with 117 additions and 28 deletions
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue