diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-07-22 17:09:28 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-07-22 17:09:28 +0200 |
| commit | 390fdf840b6bda1c830af18c912db1234baa3ebb (patch) | |
| tree | 34c8775566e69bab7e449df131bd65cc454f2c65 /animism-align/frontend/app/views/viewer/viewer.actions.js | |
| parent | 74888b0fea12020da23ad0825d5d3e55aa6155c4 (diff) | |
route to component for testing purposes
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js')
| -rw-r--r-- | animism-align/frontend/app/views/viewer/viewer.actions.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/viewer/viewer.actions.js b/animism-align/frontend/app/views/viewer/viewer.actions.js index ed59793..7f8e1c8 100644 --- a/animism-align/frontend/app/views/viewer/viewer.actions.js +++ b/animism-align/frontend/app/views/viewer/viewer.actions.js @@ -2,3 +2,13 @@ import * as types from 'app/types' import { store, history, dispatch } from 'app/store' // import { } from 'app/utils' // import actions from 'app/actions' + +export const showSection = section => dispatch => { + dispatch({ type: types.viewer.toggle_section, key: section, value: true }) +} +export const hideSection = section => dispatch => { + dispatch({ type: types.viewer.toggle_section, key: section, value: false }) +} +export const toggleSection = section => dispatch => { + dispatch({ type: types.viewer.toggle_section, key: section, value: !store.getState().viewer[section] }) +} |
