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

set flow cell view actions

This commit is contained in:
Fedor Katurov 2019-10-23 14:38:55 +07:00
parent a6385cf4cf
commit 744f79053b
7 changed files with 160 additions and 34 deletions

View file

@ -1,7 +1,14 @@
import { FLOW_ACTIONS } from './constants';
import { IFlowState } from './reducer';
import { INode } from '../types';
export const flowSetNodes = (nodes: IFlowState['nodes']) => ({
nodes,
type: FLOW_ACTIONS.SET_NODES,
});
export const flowSetCellView = (id: INode['id'], flow: INode['flow']) => ({
type: FLOW_ACTIONS.SET_CELL_VIEW,
id,
flow,
});