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

@@ -5,6 +5,8 @@ const state = state => state
export const current = state => state.get("layout")
export const currentFilter = state => state.get("filter")
export const isShown = (state, thing, def) => {
thing = normalizeArray(thing)
return Boolean(state.getIn(["shown", ...thing], def))