(null);
+ // just test on this particular block
+ const transcriptTabsFlagIsOn = useFeatureIsOn('transcript-tabs');
+ const showTranscriptTabs =
+ block === 'lecture-html-fundamentals' && transcriptTabsFlagIsOn;
+
const blockNameTitle = `${t(
`intro:${superBlock}.blocks.${block}.title`
)} - ${title}`;
@@ -127,6 +143,11 @@ const ShowGeneric = ({
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
+ const tabs = {
+ transcript: 'transcript',
+ video: 'video'
+ } as const;
+
// video
const [videoIsLoaded, setVideoIsLoaded] = useState(false);
@@ -228,7 +249,54 @@ const ShowGeneric = ({
)}
- {videoId && (
+ {showTranscriptTabs && (
+
+
+
+ {t('learn.transcript')}
+
+
+ {t('learn.video')}
+
+
+
+ {transcript && (
+
+ )}
+
+
+
+ {videoId && (
+ <>
+
+
+ >
+ )}
+
+
+ )}
+ {videoId && !showTranscriptTabs && (
<>
}
- {transcript && }
-
+ {transcript && !showTranscriptTabs && (
+
+ )}
{instructions && (
<>
>
)}
-
{assignments.length > 0 && (
)}
-
{questions.length > 0 && (
)}
-
{explanation ? (
) : null}
-
{!hasAnsweredMcqCorrectly && (
{t('learn.answered-mcq')}
)}
-