feat: commandline chic

This commit is contained in:
Ahmad Abdolsaheb
2019-08-19 18:54:04 +03:00
committed by mrugesh
parent f0329da61a
commit 31e3d9b27e
75 changed files with 1303 additions and 635 deletions

View File

@@ -15,6 +15,7 @@ import { createIdToNameMapSaga } from './id-to-name-map-saga';
import { createExecuteChallengeSaga } from './execute-challenge-saga';
import { createCurrentChallengeSaga } from './current-challenge-saga';
import { challengeTypes } from '../../../../utils/challengeTypes';
import { userSelector } from '../../../redux';
export const ns = 'challenge';
export const backendNS = 'backendChallenge';
@@ -182,6 +183,7 @@ export const projectFormValuesSelector = state =>
state[ns].projectFormValues || {};
export const challengeDataSelector = state => {
const { theme } = userSelector(state);
const { challengeType } = challengeMetaSelector(state);
let challengeData = { challengeType };
if (
@@ -223,6 +225,7 @@ export const challengeDataSelector = state => {
template
};
}
challengeData.theme = theme;
return challengeData;
};