1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00
This commit is contained in:
muerwre 2019-08-22 21:08:42 +07:00
parent a662256221
commit 148974ab7d
8 changed files with 56 additions and 9 deletions

12
src/redux/node/actions.ts Normal file
View file

@ -0,0 +1,12 @@
import { INode, IValidationErrors } from '../types';
import { NODE_ACTIONS } from './constants';
export const nodeSave = (node: INode) => ({
node,
type: NODE_ACTIONS.SAVE,
});
export const nodeSetSaveErrors = (errors: IValidationErrors) => ({
errors,
type: NODE_ACTIONS.SET_SAVE_ERRORS,
});