- Updated the code to remove the exam pages to components;

- Added some state logic to make it so it keeps track of the current exam the user is in;
This commit is contained in:
Tiago Ribeiro
2023-04-06 11:18:34 +01:00
parent 780d208675
commit 36e6c017b4
7 changed files with 377 additions and 89 deletions

View File

@@ -1,9 +1,12 @@
export type Exam = ReadingExam | ListeningExam;
export interface ReadingExam {
text: {
title: string;
content: string;
};
exercises: Exercise[];
module: "reading";
}
export interface ListeningExam {
@@ -14,6 +17,7 @@ export interface ListeningExam {
repeatableTimes: number; // *The amount of times the user is allowed to repeat the audio, 0 for unlimited
};
exercises: Exercise[];
module: "listening";
}
export type Exercise = FillBlanksExercise | MatchSentencesExercise | MultipleChoiceExercise | WriteBlanksExercise;