in with the new

This commit is contained in:
Ron
2017-03-17 21:17:53 -07:00
parent bd8344c808
commit f22a628934
157 changed files with 12952 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import {
UPDATE_LAYOUT,
UPDATE_MODE,
SHOW
} from "./actions"
export default {
[UPDATE_LAYOUT]: (state, action) => state.set("layout", action.payload),
[SHOW]: (state, action) => {
let thing = action.payload.thing
let shown = action.payload.shown
return state.setIn(["shown"].concat(thing), shown)
},
[UPDATE_MODE]: (state, action) => {
let thing = action.payload.thing
let mode = action.payload.mode
return state.setIn(["modes"].concat(thing), (mode || "") + "")
}
}