Revert "Merge branch 'assessment' into tutorial"

This reverts commit e322795f25, reversing
changes made to dddd9432db.
This commit is contained in:
Delucse
2020-09-08 11:30:25 +02:00
parent e322795f25
commit 6a94ce618c
12 changed files with 125 additions and 466 deletions
+1 -3
View File
@@ -1,8 +1,6 @@
import { combineReducers } from 'redux';
import workspaceReducer from './workspaceReducer';
import tutorialReducer from './tutorialReducer';
export default combineReducers({
workspace: workspaceReducer,
tutorial: tutorialReducer
workspace: workspaceReducer
});
-25
View File
@@ -1,25 +0,0 @@
import { TUTORIAL_SUCCESS, TUTORIAL_ERROR, TUTORIAL_CHANGE } from '../actions/types';
const initialState = {
status: JSON.parse(window.localStorage.getItem('tutorial')),
change: 0
};
export default function(state = initialState, action){
switch(action.type){
case TUTORIAL_SUCCESS:
case TUTORIAL_ERROR:
return {
...state,
status: action.payload
};
case TUTORIAL_CHANGE:
return {
...state,
change: state.change += 1
}
default:
return state;
}
}