mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
WIP: increment narrative through redux
This commit is contained in:
@@ -93,21 +93,3 @@ export function injectSource(id) {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Debugging function: put in place of a mapStateToProps function to
|
||||
* view that narrative modal by default
|
||||
*/
|
||||
export function injectNarrative(idx) {
|
||||
return state => {
|
||||
console.log(state.domain.narratives)
|
||||
return {
|
||||
...state,
|
||||
app: {
|
||||
...state.app,
|
||||
narrative: state.domain.narratives.length ? state.domain.narratives[idx] : null
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user