Move fetchChallenges up a level
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user