Add filter to layout state

This commit is contained in:
Kyle Shockey
2017-07-11 21:33:14 -07:00
parent 7cfc7cb4fc
commit cf12091d93
4 changed files with 15 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
import {
UPDATE_LAYOUT,
UPDATE_FILTER,
UPDATE_MODE,
SHOW
} from "./actions"
@@ -8,6 +9,8 @@ export default {
[UPDATE_LAYOUT]: (state, action) => state.set("layout", action.payload),
[UPDATE_FILTER]: (state, action) => state.set("filter", action.payload),
[SHOW]: (state, action) => {
let thing = action.payload.thing
let shown = action.payload.shown