Forgot to stage it
This commit is contained in:
@@ -29,6 +29,11 @@ const defaultSettings = (module: Module) => {
|
||||
isAudioContextOpen: false,
|
||||
isAudioGenerationOpen: false,
|
||||
}
|
||||
case 'speaking':
|
||||
return {
|
||||
...baseSettings,
|
||||
isGenerateAudio: false
|
||||
}
|
||||
default:
|
||||
return baseSettings;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ const useExamEditorStore = create<
|
||||
title: "",
|
||||
globalEdit: [],
|
||||
currentModule: "reading",
|
||||
speakingAvatars: [],
|
||||
modules: {
|
||||
reading: defaultModuleSettings("reading", 60),
|
||||
writing: defaultModuleSettings("writing", 60),
|
||||
|
||||
@@ -22,6 +22,7 @@ export interface SectionSettings {
|
||||
|
||||
export interface SpeakingSectionSettings extends SectionSettings {
|
||||
secondTopic?: string;
|
||||
isGenerateAudio: boolean;
|
||||
}
|
||||
|
||||
export interface ReadingSectionSettings extends SectionSettings {
|
||||
@@ -62,9 +63,15 @@ export interface ModuleState {
|
||||
edit: number[];
|
||||
}
|
||||
|
||||
export interface Avatar {
|
||||
name: string;
|
||||
gender: string;
|
||||
}
|
||||
|
||||
export default interface ExamEditorStore {
|
||||
title: string;
|
||||
currentModule: Module;
|
||||
speakingAvatars: Avatar[];
|
||||
modules: {
|
||||
[K in Module]: ModuleState
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user