Moves to next challenges

This commit is contained in:
Berkeley Martinez
2016-06-01 15:52:08 -07:00
parent 515051d817
commit cc8b608cb9
16 changed files with 327 additions and 546 deletions

View File

@@ -19,7 +19,8 @@ const initialState = {
previousStep: -1,
filter: '',
files: {},
superBlocks: []
superBlocks: [],
toast: 0
};
const mainReducer = handleActions(
@@ -45,6 +46,10 @@ const mainReducer = handleActions(
...state,
tests: state.tests.map(test => ({ ...test, err: false, pass: false }))
}),
[types.showChallengeComplete]: (state, { payload: toast }) => ({
...state,
toast
}),
// map
[types.updateFilter]: (state, { payload = ''}) => ({