INNER CODE UNIT · JavaScript
AppErrorReducer
jippi/hashi-ui · frontend/src/reducers/app.js:38
export function AppErrorReducer(state = {}, action) {
switch (action.type) {
case APP_ERROR:
return action.payload
default:
}
return state
}
export function AppDrawer(state = false, action) {
switch (action.type) {
case APP_DRAWER_OPEN:
return true
case APP_DRAWER_CLOSE:
return false
default:
return state
}