11import { graphql } from 'gatsby' ;
22import React , { useEffect , useRef , useState } from 'react' ;
3- import { useFeature } from '@growthbook/growthbook-react' ;
43import Helmet from 'react-helmet' ;
54import { useTranslation } from 'react-i18next' ;
65import { connect } from 'react-redux' ;
@@ -9,12 +8,7 @@ import { isEqual } from 'lodash';
98
109// Local Utilities
1110import LearnLayout from '../../../components/layouts/learn' ;
12- import {
13- ChallengeNode ,
14- ChallengeMeta ,
15- NavigationPaths ,
16- Test
17- } from '../../../redux/prop-types' ;
11+ import { ChallengeNode , ChallengeMeta , Test } from '../../../redux/prop-types' ;
1812import ChallengeDescription from '../components/challenge-description' ;
1913import Hotkeys from '../components/hotkeys' ;
2014import ChallengeTitle from '../components/challenge-title' ;
@@ -66,7 +60,6 @@ interface ShowQuizProps {
6660 openHelpModal : ( ) => void ;
6761 pageContext : {
6862 challengeMeta : ChallengeMeta ;
69- nextCurriculumPaths : NavigationPaths ;
7063 } ;
7164 updateChallengeMeta : ( arg0 : ChallengeMeta ) => void ;
7265 updateSolutionFormValues : ( ) => void ;
@@ -97,7 +90,7 @@ const ShowGeneric = ({
9790 }
9891 }
9992 } ,
100- pageContext : { challengeMeta, nextCurriculumPaths } ,
93+ pageContext : { challengeMeta } ,
10194 initTests,
10295 updateChallengeMeta,
10396 openCompletionModal,
@@ -114,9 +107,7 @@ const ShowGeneric = ({
114107 useEffect ( ( ) => {
115108 initTests ( tests ) ;
116109 const challengePaths = getChallengePaths ( {
117- showNextCurriculum,
118- currentCurriculumPaths : challengeMeta ,
119- nextCurriculumPaths
110+ currentCurriculumPaths : challengeMeta
120111 } ) ;
121112 updateChallengeMeta ( {
122113 ...challengeMeta ,
@@ -161,8 +152,6 @@ const ShowGeneric = ({
161152
162153 const [ showFeedback , setShowFeedback ] = useState ( false ) ;
163154
164- const showNextCurriculum = useFeature ( 'fcc-10' ) . on ;
165-
166155 const handleMcqOptionChange = (
167156 questionIndex : number ,
168157 answerIndex : number
0 commit comments