From 73878e84b004c542acfe8aa367bce0961e2ccf59 Mon Sep 17 00:00:00 2001 From: Lukasz Grzybowski Date: Fri, 12 Jan 2018 15:51:45 +0100 Subject: [PATCH] fix(map): Removed required sign from challenges Closes #16239 --- common/app/Map/Challenge.jsx | 16 +--------------- .../information-security-with-helmetjs.json | 2 +- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/common/app/Map/Challenge.jsx b/common/app/Map/Challenge.jsx index c987f0cc13..b531d884e3 100644 --- a/common/app/Map/Challenge.jsx +++ b/common/app/Map/Challenge.jsx @@ -20,7 +20,6 @@ const propTypes = { isCompleted: PropTypes.bool, isDev: PropTypes.bool, isLocked: PropTypes.bool, - isRequired: PropTypes.bool, title: PropTypes.string }; const mapDispatchToProps = { clickOnChallenge }; @@ -38,7 +37,6 @@ function makeMapStateToProps(_, { dashedName }) { title, block, isLocked, - isRequired, isComingSoon } = challengeMap[dashedName] || {}; const isCompleted = userChallengeMap ? !!userChallengeMap[id] : false; @@ -48,7 +46,6 @@ function makeMapStateToProps(_, { dashedName }) { title, block, isLocked, - isRequired, isComingSoon, isDev: debug.enabled('fcc:*') }; @@ -64,13 +61,6 @@ export class Challenge extends PureComponent { return completed; } - renderRequired(isRequired) { - if (!isRequired) { - return ''; - } - return *; - } - renderComingSoon(isComingSoon) { if (!isComingSoon) { return null; @@ -85,14 +75,13 @@ export class Challenge extends PureComponent { ); } - renderLocked(title, isRequired, isComingSoon, className) { + renderLocked(title, isComingSoon, className) { return (

{ title } - { this.renderRequired(isRequired) } { this.renderComingSoon(isComingSoon) }

); @@ -108,7 +97,6 @@ export class Challenge extends PureComponent { isCompleted, isDev, isLocked, - isRequired, title } = this.props; if (!title) { @@ -126,7 +114,6 @@ export class Challenge extends PureComponent { if (isLocked || (!isDev && isComingSoon)) { return this.renderLocked( title, - isRequired, isComingSoon, challengeClassName ); @@ -143,7 +130,6 @@ export class Challenge extends PureComponent { { title } { this.renderCompleted(isCompleted, isLocked) } - { this.renderRequired(isRequired) } diff --git a/seed/challenges/06-information-security-and-quality-assurance/information-security-with-helmetjs.json b/seed/challenges/06-information-security-and-quality-assurance/information-security-with-helmetjs.json index ccd062bd17..1c8359dfeb 100644 --- a/seed/challenges/06-information-security-and-quality-assurance/information-security-with-helmetjs.json +++ b/seed/challenges/06-information-security-and-quality-assurance/information-security-with-helmetjs.json @@ -397,4 +397,4 @@ "translations": {} } ] -} \ No newline at end of file +}