worked on video challenge superblock

fixed rebase merge errors

Fix videos route

Fix hikes broken true/false

fixed component name
This commit is contained in:
Akira Laine
2016-02-02 21:00:48 +11:00
parent 0f15798550
commit a7bd7e3729
8 changed files with 18 additions and 9 deletions

View File

@@ -15,8 +15,8 @@ const debug = debugFactory('freecc:react-server');
const routes = [
'/jobs',
'/jobs/*',
'/hikes',
'/hikes/*'
'/videos',
'/videos/*'
];
const devRoutes = [];

View File

@@ -223,6 +223,15 @@ function getSuperBlocks$(challenge$, completedChallenges) {
const isComingSoon = _.every(blockArray, 'isComingSoon');
const isRequired = _.every(blockArray, 'isRequired');
blockArray = blockArray.map(challenge => {
if (challenge.challengeType == 6 && challenge.type === 'hike') {
challenge.url = '/videos/' + challenge.dashedName;
} else {
challenge.url = '/challenges/' + challenge.dashedName;
}
return challenge;
});
return {
isBeta,
isComingSoon,