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:
parent
a6385cf4cf
commit
744f79053b
7 changed files with 160 additions and 34 deletions
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue