summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/viewer.reducer.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-08-07 22:59:03 +0200
committerJules Laplace <julescarbon@gmail.com>2020-08-07 22:59:03 +0200
commit475638e617c5053aeb897d26bfba4c8d1975c614 (patch)
tree28762550bf791983e49bd33ec909c79f30f8a09f /animism-align/frontend/app/views/viewer/viewer.reducer.js
parent51abc790cb4952456029db1132c0e8730618afcd (diff)
next button
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.reducer.js')
-rw-r--r--animism-align/frontend/app/views/viewer/viewer.reducer.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/animism-align/frontend/app/views/viewer/viewer.reducer.js b/animism-align/frontend/app/views/viewer/viewer.reducer.js
index e2ed779..5ebe657 100644
--- a/animism-align/frontend/app/views/viewer/viewer.reducer.js
+++ b/animism-align/frontend/app/views/viewer/viewer.reducer.js
@@ -7,6 +7,7 @@ const initialState = {
sections: { loading: true },
fullscreenTimeline: [],
currentSection: null,
+ nextSection: null,
navStyle: 'white',
options: {
}
@@ -31,7 +32,8 @@ export default function viewerReducer(state = initialState, action) {
case types.viewer.set_current_section:
return {
...state,
- currentSection: action.section,
+ currentSection: action.currentSection,
+ nextSection: action.nextSection,
}
case types.viewer.set_nav_style: