WIP: increment narrative through redux

This commit is contained in:
Lachlan Kermode
2019-01-03 16:40:38 +00:00
parent e6742d0b04
commit 125bd06f59
5 changed files with 80 additions and 111 deletions

View File

@@ -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
}
}
}
}