From 475638e617c5053aeb897d26bfba4c8d1975c614 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 7 Aug 2020 22:59:03 +0200 Subject: next button --- animism-align/frontend/app/views/viewer/viewer.reducer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'animism-align/frontend/app/views/viewer/viewer.reducer.js') 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: -- cgit v1.2.3-70-g09d2