aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/ducks/views.js
blob: 88b4d355aafd9caeb4f8376da30a378e32d7e7ba (plain)
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 { combineReducers } from 'redux'
import * as viewActions from './utils/view'
import main from './views/main.js'

export default combineReducers({
    main,
})

/**
 * @public
 */
export function add(item) {
    return { type: ADD, item }
}

/**
 * @public
 */
export function update(id, item) {
    return { type: UPDATE, id, item }
}

/**
 * @public
 */
export function remove(id) {
    return { type: REMOVE, id }
}

/**
 * @public
 */
export function receive(list) {
    return { type: RECEIVE, list }
}