Removed placeholders

This commit is contained in:
Tiago Ribeiro
2023-06-15 16:53:11 +01:00
parent 989a7449bf
commit 84b0b8ac42
2 changed files with 3 additions and 1 deletions

View File

@@ -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"
/> />

View File

@@ -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}