From f5ec910010a430b797d80cff2e135ac36e369778 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Thu, 15 Jun 2023 15:27:04 +0100 Subject: [PATCH] Did the new designs for the Writing --- src/components/Exercises/Writing.tsx | 64 +++++++++++----------------- src/exams/Writing.tsx | 36 ++++++++-------- 2 files changed, 42 insertions(+), 58 deletions(-) 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} +