-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6947 from topcoder-platform/develop
IC-28 Production releas -> master
- Loading branch information
Showing
15 changed files
with
279 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
import _ from 'lodash'; | ||
import { createActions } from 'redux-actions'; | ||
import { getService } from '../services/dashboard'; | ||
|
||
const service = getService(); | ||
|
||
function fetchChallenges(query) { | ||
return service.getChallenges(query); | ||
function fetchChallengesInit(title) { | ||
return title; | ||
} | ||
|
||
async function fetchChallenges(title, query) { | ||
const challenges = await service.getChallenges(query); | ||
|
||
return { | ||
challenges, | ||
title, | ||
}; | ||
} | ||
|
||
export default createActions({ | ||
DASHBOARD: { | ||
FETCH_CHALLENGES_INIT: _.noop, | ||
FETCH_CHALLENGES_INIT: fetchChallengesInit, | ||
FETCH_CHALLENGES_DONE: fetchChallenges, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.