summaryrefslogtreecommitdiff
path: root/app/client/live/reducer.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/client/live/reducer.js')
-rw-r--r--app/client/live/reducer.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/client/live/reducer.js b/app/client/live/reducer.js
index 93fc448..3771ff0 100644
--- a/app/client/live/reducer.js
+++ b/app/client/live/reducer.js
@@ -4,6 +4,8 @@ const liveInitialState = {
loading: false,
error: null,
opt: {},
+ checkpoints: [],
+ videos: [],
}
const liveReducer = (state = liveInitialState, action) => {
@@ -30,6 +32,24 @@ const liveReducer = (state = liveInitialState, action) => {
}
}
+ case 'LIST_CHECKPOINTS':
+ return {
+ ...state,
+ checkpoints: {
+ ...state.opt,
+ [action.key]: action.value,
+ }
+ }
+
+ case 'LIST_VIDEOS':
+ return {
+ ...state,
+ videos: {
+ ...state.opt,
+ [action.key]: action.value,
+ }
+ }
+
default:
return state
}