Updated the format of the interactive speaking

This commit is contained in:
Tiago Ribeiro
2024-06-11 11:20:54 +01:00
parent 9959cf4294
commit 6712e89c47
2 changed files with 6 additions and 6 deletions

View File

@@ -193,17 +193,17 @@ export default function InteractiveSpeaking({
</Tab.Panel>
<Tab.Panel className="w-full bg-ielts-speaking/10 h-fit rounded-xl p-6 flex flex-col gap-4">
<span className="w-full h-full min-h-fit cursor-text whitespace-pre-wrap">
{userSolutions[0].evaluation!.perfect_answer_1!.replaceAll(/\s{2,}/g, "\n\n")}
{userSolutions[0].evaluation!.perfect_answer_1!.answer.replaceAll(/\s{2,}/g, "\n\n")}
</span>
</Tab.Panel>
<Tab.Panel className="w-full bg-ielts-speaking/10 h-fit rounded-xl p-6 flex flex-col gap-4">
<span className="w-full h-full min-h-fit cursor-text whitespace-pre-wrap">
{userSolutions[0].evaluation!.perfect_answer_2!.replaceAll(/\s{2,}/g, "\n\n")}
{userSolutions[0].evaluation!.perfect_answer_2!.answer.replaceAll(/\s{2,}/g, "\n\n")}
</span>
</Tab.Panel>
<Tab.Panel className="w-full bg-ielts-speaking/10 h-fit rounded-xl p-6 flex flex-col gap-4">
<span className="w-full h-full min-h-fit cursor-text whitespace-pre-wrap">
{userSolutions[0].evaluation!.perfect_answer_3!.replaceAll(/\s{2,}/g, "\n\n")}
{userSolutions[0].evaluation!.perfect_answer_3!.answer.replaceAll(/\s{2,}/g, "\n\n")}
</span>
</Tab.Panel>
</Tab.Panels>

View File

@@ -116,13 +116,13 @@ export interface Evaluation {
}
interface InteractiveSpeakingEvaluation extends Evaluation {
perfect_answer_1?: string;
perfect_answer_1?: {answer: string};
transcript_1?: string;
fixed_text_1?: string;
perfect_answer_2?: string;
perfect_answer_2?: {answer: string};
transcript_2?: string;
fixed_text_2?: string;
perfect_answer_3?: string;
perfect_answer_3?: {answer: string};
transcript_3?: string;
fixed_text_3?: string;
}