From 67c2e06575a5cadf49cc1ab57f4c89ac57ff035f Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Mon, 22 Jan 2024 23:34:42 +0000 Subject: [PATCH] Improved the Generation frontend --- .../(generation)/ListeningGeneration.tsx | 35 ++++++++++++------- src/pages/(generation)/ReadingGeneration.tsx | 32 +++++++++++------ src/pages/(generation)/SpeakingGeneration.tsx | 31 +++++++++++----- src/pages/(generation)/WritingGeneration.tsx | 26 ++++++++++---- 4 files changed, 86 insertions(+), 38 deletions(-) diff --git a/src/pages/(generation)/ListeningGeneration.tsx b/src/pages/(generation)/ListeningGeneration.tsx index c2d26237..b77d6266 100644 --- a/src/pages/(generation)/ListeningGeneration.tsx +++ b/src/pages/(generation)/ListeningGeneration.tsx @@ -8,8 +8,8 @@ import {Tab} from "@headlessui/react"; import axios from "axios"; import clsx from "clsx"; import {useRouter} from "next/router"; -import {useState} from "react"; -import {BsArrowRepeat} from "react-icons/bs"; +import {useEffect, useState} from "react"; +import {BsArrowRepeat, BsCheck} from "react-icons/bs"; import {toast} from "react-toastify"; const PartTab = ({part, types, index, setPart}: {part?: ListeningPart; types: string[]; index: number; setPart: (part?: ListeningPart) => void}) => { @@ -42,7 +42,7 @@ const PartTab = ({part, types, index, setPart}: {part?: ListeningPart; types: st