diff --git a/client/src/redux/propTypes.js b/client/src/redux/propTypes.js index a246d2399d..66317e2ed2 100644 --- a/client/src/redux/propTypes.js +++ b/client/src/redux/propTypes.js @@ -53,6 +53,7 @@ export const ChallengeNode = PropTypes.shape({ tail: PropTypes.arrayOf(PropTypes.string), time: PropTypes.string, title: PropTypes.string, + translationPending: PropTypes.bool, videoUrl: PropTypes.string }); diff --git a/client/src/templates/Challenges/classic/Show.js b/client/src/templates/Challenges/classic/Show.js index d3c975a971..fe5bd39150 100644 --- a/client/src/templates/Challenges/classic/Show.js +++ b/client/src/templates/Challenges/classic/Show.js @@ -209,7 +209,8 @@ class ShowClassic extends Component { fields: { blockName }, description, instructions, - superBlock + superBlock, + translationPending } = this.getChallenge(); const { forumTopicId, title } = this.getChallenge(); @@ -224,6 +225,7 @@ class ShowClassic extends Component { showToolPanel={showToolPanel} superBlock={superBlock} title={title} + translationPending={translationPending} videoUrl={this.getVideoUrl()} /> ); @@ -362,6 +364,7 @@ export const query = graphql` helpCategory videoUrl superBlock + translationPending forumTopicId fields { slug diff --git a/client/src/templates/Challenges/components/Challenge-Title.js b/client/src/templates/Challenges/components/Challenge-Title.js index 06db39bc0c..9922f159f1 100644 --- a/client/src/templates/Challenges/components/Challenge-Title.js +++ b/client/src/templates/Challenges/components/Challenge-Title.js @@ -11,18 +11,27 @@ const propTypes = { block: PropTypes.string, children: PropTypes.string, isCompleted: PropTypes.bool, - superBlock: PropTypes.string + superBlock: PropTypes.string, + translationPending: PropTypes.bool.isRequired }; -function ChallengeTitle({ block, children, isCompleted, superBlock }) { +function ChallengeTitle({ + block, + children, + isCompleted, + superBlock, + translationPending +}) { return (