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

letting only to add tags

This commit is contained in:
Fedor Katurov 2019-10-09 16:30:52 +07:00
parent 9df5e022dd
commit 453f13f3db
5 changed files with 45 additions and 22 deletions

View file

@ -1,4 +1,4 @@
import { INode, IValidationErrors, IComment } from '../types';
import { INode, IValidationErrors, IComment, ITag } from '../types';
import { NODE_ACTIONS } from './constants';
import { INodeState } from './reducer';
@ -59,3 +59,8 @@ export const nodeUpdateTags = (id: INode['id'], tags: string[]) => ({
id,
tags,
});
export const nodeSetTags = (tags: ITag[]) => ({
type: NODE_ACTIONS.SET_TAGS,
tags,
});