Move fetchChallenges up a level

This commit is contained in:
Berkeley Martinez
2016-05-06 16:04:23 -07:00
parent 861f89683b
commit 59dcabb588
10 changed files with 46 additions and 44 deletions

View File

@@ -2,17 +2,9 @@ import { handleActions } from 'redux-actions';
import types from './types';
const initialState = {
superBlocks: [],
filter: ''
};
const initialState = { filter: '' };
export default handleActions(
{
[types.fetchChallengesCompleted]: (state, { payload = [] }) => ({
...state,
superBlocks: payload
}),
[types.updateFilter]: (state, { payload = ''}) => ({
...state,
filter: payload