(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}`;
@@ -143,11 +127,6 @@ const ShowGeneric = ({
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
- const tabs = {
- transcript: 'transcript',
- video: 'video'
- } as const;
-
// video
const [videoIsLoaded, setVideoIsLoaded] = useState(false);
@@ -249,54 +228,7 @@ const ShowGeneric = ({
)}
- {showTranscriptTabs && (
-
-
-
- {t('learn.transcript')}
-
-
- {t('learn.video')}
-
-
-
- {transcript && (
-
- )}
-
-
-
- {videoId && (
- <>
-
-
- >
- )}
-
-
- )}
- {videoId && !showTranscriptTabs && (
+ {videoId && (
<>
}
- {transcript && !showTranscriptTabs && (
-
- )}
+ {transcript && }
+
{instructions && (
<>
>
)}
+
{assignments.length > 0 && (
)}
+
{questions.length > 0 && (
)}
+
{explanation ? (
) : null}
+
{!hasAnsweredMcqCorrectly && (
{t('learn.answered-mcq')}
)}
+