+
{quiz.name}
-
+
+
+
+
+
+ {error && error}
+
+
+
+
);
}
diff --git a/nextjs/src/app/course/[courseName]/modules/[moduleName]/quiz/[quizName]/QuizPreview.tsx b/nextjs/src/app/course/[courseName]/modules/[moduleName]/quiz/[quizName]/QuizPreview.tsx
new file mode 100644
index 0000000..2209f4d
--- /dev/null
+++ b/nextjs/src/app/course/[courseName]/modules/[moduleName]/quiz/[quizName]/QuizPreview.tsx
@@ -0,0 +1,10 @@
+import { LocalQuiz } from "@/models/local/quiz/localQuiz";
+
+export default function QuizPreview({quiz}: {quiz: LocalQuiz}) {
+ return (
+
+ )
+}
diff --git a/nextjs/src/app/globals.css b/nextjs/src/app/globals.css
index b7b24e8..6170d8a 100644
--- a/nextjs/src/app/globals.css
+++ b/nextjs/src/app/globals.css
@@ -9,3 +9,8 @@
text-wrap: balance;
}
}
+
+/* monaco editor */
+.monaco-editor-background, .monaco-editor .margin {
+ background-color: black !important;
+}
\ No newline at end of file
diff --git a/nextjs/src/components/editor/InnerMonacoEditor.tsx b/nextjs/src/components/editor/InnerMonacoEditor.tsx
index c7a99c9..d43ddc0 100644
--- a/nextjs/src/components/editor/InnerMonacoEditor.tsx
+++ b/nextjs/src/components/editor/InnerMonacoEditor.tsx
@@ -15,8 +15,6 @@ export default function InnerMonacoEditor({
const editorRef = useRef
(null);
const divRef = useRef(null);
- // const monacoRef = useRef(null);
-
useEffect(() => {
if (divRef.current && !editorRef.current) {
loader.init().then((monaco) => {
@@ -47,12 +45,13 @@ export default function InnerMonacoEditor({
});
}
}, [onChange, value]);
+
return (
);
}