Removed placeholders
This commit is contained in:
@@ -154,6 +154,7 @@ export default function Speaking({id, title, text, type, prompts, onNext, onBack
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
setRecordingDuration(0);
|
setRecordingDuration(0);
|
||||||
clearBlobUrl();
|
clearBlobUrl();
|
||||||
|
setMediaBlob(undefined);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -163,6 +164,7 @@ export default function Speaking({id, title, text, type, prompts, onNext, onBack
|
|||||||
setRecordingDuration(0);
|
setRecordingDuration(0);
|
||||||
startRecording();
|
startRecording();
|
||||||
setIsRecording(true);
|
setIsRecording(true);
|
||||||
|
setMediaBlob(undefined);
|
||||||
}}
|
}}
|
||||||
className="h-5 w-5 text-mti-gray-cool cursor-pointer"
|
className="h-5 w-5 text-mti-gray-cool cursor-pointer"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export default function Listening({exam, showSolutions = false, onFinish}: Props
|
|||||||
</div>
|
</div>
|
||||||
<div className="rounded-xl flex flex-col gap-4 items-center w-full h-fit">
|
<div className="rounded-xl flex flex-col gap-4 items-center w-full h-fit">
|
||||||
<AudioPlayer
|
<AudioPlayer
|
||||||
src="https://assets.mixkit.co/active_storage/sfx/213/213-preview.mp3"
|
src={exam.audio.source}
|
||||||
color="listening"
|
color="listening"
|
||||||
onEnd={() => setTimesListened((prev) => prev + 1)}
|
onEnd={() => setTimesListened((prev) => prev + 1)}
|
||||||
disabled={timesListened === exam.audio.repeatableTimes}
|
disabled={timesListened === exam.audio.repeatableTimes}
|
||||||
|
|||||||
Reference in New Issue
Block a user