mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
rm old reset action
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user