fix narrativeStepStyles inconsistency

This commit is contained in:
Lachlan Kermode
2019-02-19 14:51:06 +00:00
parent 534f238ccd
commit eeed18e6b8
3 changed files with 81 additions and 68 deletions

View File

@@ -118,16 +118,6 @@ function decrementNarrativeCurrent (appState, action) {
}
}
function clearTagFilters (appState) {
return {
...appState,
filters: {
...appState.filters,
tags: []
}
}
}
function toggleFilter (appState, action) {
let newTags = appState.filters[action.filter].slice(0)
if (newTags.includes(action.value)) {
@@ -223,8 +213,6 @@ function app (appState = initial.app, action) {
return decrementNarrativeCurrent(appState, action)
case UPDATE_SOURCE:
return updateSource(appState, action)
case RESET_ALLFILTERS:
return resetAllFilters(appState, action)
/* toggles */
case TOGGLE_LANGUAGE:
return toggleLanguage(appState, action)