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

@@ -45,3 +45,12 @@ export const createErrorObserable = error => Observable.just({
type: types.handleError,
error
});
// challenges
// these need to be used by more than one route so we put them here
export const fetchChallenges = createAction(types.fetchChallenges);
export const fetchChallengesCompleted = createAction(
types.fetchChallengesCompleted,
(_, superBlocks) => superBlocks,
entities => ({ entities })
);