rm old reset action

This commit is contained in:
Lachlan Kermode
2019-02-14 15:47:39 +00:00
parent 7463aa33ca
commit 2a275f7bd4
2 changed files with 0 additions and 21 deletions

View File

@@ -218,13 +218,6 @@ export function decrementNarrativeCurrent () {
}
}
export const RESET_ALLFILTERS = 'RESET_ALLFILTERS'
export function resetAllFilters () {
return {
type: RESET_ALLFILTERS
}
}
export const UPDATE_SOURCE = 'UPDATE_SOURCE'
export function updateSource (source) {
return {

View File

@@ -164,20 +164,6 @@ function updateTimeRange (appState, action) { // XXX
}
}
function resetAllFilters (appState) { // XXX
return Object.assign({}, appState, {
filters: Object.assign({}, appState.filters, {
tags: [],
categories: [],
timerange: [
d3.timeParse('%Y-%m-%dT%H:%M:%S')('2014-09-25T12:00:00'),
d3.timeParse('%Y-%m-%dT%H:%M:%S')('2014-09-28T12:00:00')
]
}),
selected: []
})
}
function toggleLanguage (appState, action) {
let otherLanguage = (appState.language === 'es-MX') ? 'en-US' : 'es-MX'
return Object.assign({}, appState, {