- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user