ENCOA-274
This commit is contained in:
@@ -23,7 +23,8 @@ export const defaultSettings = (module: Module) => {
|
||||
return {
|
||||
...baseSettings,
|
||||
writingTopic: '',
|
||||
isWritingTopicOpen: false
|
||||
isWritingTopicOpen: false,
|
||||
isImageUploadOpen: false,
|
||||
}
|
||||
case 'reading':
|
||||
return {
|
||||
@@ -57,6 +58,7 @@ export const defaultSettings = (module: Module) => {
|
||||
isListeningDropdownOpen: false,
|
||||
|
||||
isWritingTopicOpen: false,
|
||||
isImageUploadOpen: false,
|
||||
writingTopic: '',
|
||||
|
||||
isPassageOpen: false,
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Difficulty, InteractiveSpeakingExercise, LevelPart, ListeningPart, ReadingPart, SpeakingExercise, WritingExercise } from "@/interfaces/exam";
|
||||
import { Module } from "@/interfaces";
|
||||
import Option from "@/interfaces/option";
|
||||
import { ExerciseConfig } from "@/components/ExamEditor/ExercisePicker/ExerciseWizard";
|
||||
|
||||
export interface GeneratedExercises {
|
||||
exercises: Record<string, string>[];
|
||||
@@ -42,6 +41,7 @@ export interface ListeningSectionSettings extends SectionSettings {
|
||||
export interface WritingSectionSettings extends SectionSettings {
|
||||
isWritingTopicOpen: boolean;
|
||||
writingTopic: string;
|
||||
isImageUploadOpen: boolean;
|
||||
}
|
||||
|
||||
export interface LevelSectionSettings extends SectionSettings {
|
||||
@@ -55,6 +55,7 @@ export interface LevelSectionSettings extends SectionSettings {
|
||||
|
||||
// writing
|
||||
isWritingTopicOpen: boolean;
|
||||
isImageUploadOpen: boolean;
|
||||
writingTopic: string;
|
||||
|
||||
// reading
|
||||
@@ -116,6 +117,7 @@ export interface ModuleState {
|
||||
importing: boolean;
|
||||
edit: number[];
|
||||
type?: "general" | "academic";
|
||||
academic_url?: string | undefined;
|
||||
}
|
||||
|
||||
export interface Avatar {
|
||||
|
||||
Reference in New Issue
Block a user