blob: 812a50109fbf3320382364be53a9f8ad6b4c6ec3 (
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
|
import types from '../types'
import moment from 'moment/min/moment.min'
let FileSaver = require('file-saver')
const dashboardInitialState = {
loading: false,
error: null,
data: {},
images: [
],
files: [
]
}
const dashboardReducer = (state = dashboardInitialState, action) => {
switch(action.type) {
case types.dashboard.load:
return {
...state,
loading: false,
error: null,
data: action.data,
}
default:
return state
}
}
export default dashboardReducer
|