add NarrativeAdjust as arrows above timeline

This commit is contained in:
Lachlan Kermode
2019-01-08 18:01:08 +00:00
parent 51d7dd8191
commit 46aeaf5217
5 changed files with 70 additions and 42 deletions

View File

@@ -126,6 +126,10 @@ class Dashboard extends React.Component {
getCategoryColor={category => this.getCategoryColor(category)}
/>
<NarrativeControls
narrative={!!app.narrative ? {
...app.narrative,
current: app.narrativeState.current
} : null}
methods={{
onNext: () => this.moveInNarrative(1),
onPrev: () => this.moveInNarrative(-1),
@@ -165,16 +169,6 @@ function mapDispatchToProps(dispatch) {
}
}
function injectSource(id) {
return state => ({
...state,
app: {
...state.app,
source: state.domain.sources[id]
}
})
}
export default connect(
state => state,
mapDispatchToProps,