1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
import * as types from './actionTypes';
export const fetchAction = (items, branch) => ({
branch,
type: `${branch}/${types.FETCH_DATA_FORM}`,
items
});
export const addAction = (anchor, branch) => ({
branch,
type: `${branch}/${types.ADD_NEW}`,
anchor
});
export const closeAction = branch => ({
branch,
type: `${branch}/${types.CLOSE_FORM}`
});
export const submitAction = (newData, branch) => ({
branch,
type: `${branch}/${types.SUBMIT_DATA}`,
newData
});
export const removeAction = (item, branch) => ({
branch,
type: `${branch}/${types.REMOVE_ROW_FORM}`,
item
});
export const editAction = (item, branch) => ({
branch,
type: `${branch}/${types.EDIT_ROW_FORM}`,
item
});
export const closeNotifAction = branch => ({
branch,
type: `${branch}/${types.CLOSE_NOTIF}`,
});
|