Revert "Merge branch 'assessment' into tutorial"
This reverts commite322795f25, reversing changes made todddd9432db.
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user