diff --git a/src/components/Exercises/Writing.tsx b/src/components/Exercises/Writing.tsx index cf2d5063..f61c3a99 100644 --- a/src/components/Exercises/Writing.tsx +++ b/src/components/Exercises/Writing.tsx @@ -7,6 +7,7 @@ import clsx from "clsx"; import {CommonProps} from "."; import {Fragment, useEffect, useState} from "react"; import {toast} from "react-toastify"; +import Button from "../Low/Button"; export default function Writing({id, prompt, info, type, wordCounter, attachment, onNext, onBack}: WritingExercise & CommonProps) { const [inputText, setInputText] = useState(""); @@ -27,58 +28,43 @@ export default function Writing({id, prompt, info, type, wordCounter, attachment }, [inputText, wordCounter]); return ( -
-
+
+
{info} - + {prompt.split("\\n").map((line, index) => ( - {line} +

{line}


))}
+ {attachment && Exercise attachment} +
+ +
You should write {wordCounter.type === "min" ? "at least" : "at most"} {wordCounter.limit} words. - {attachment && Exercise attachment} +