Added the ability to generate Level exams

This commit is contained in:
Tiago Ribeiro
2023-11-24 00:57:25 +00:00
parent 7e2f1fcf9d
commit 23f2bace5d
2 changed files with 209 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ import axios from "axios";
import ReadingGeneration from "./(generation)/ReadingGeneration";
import ListeningGeneration from "./(generation)/ListeningGeneration";
import WritingGeneration from "./(generation)/WritingGeneration";
import LevelGeneration from "./(generation)/LevelGeneration";
export const getServerSideProps = withIronSessionSsr(({req, res}) => {
const user = req.session.user;
@@ -114,6 +115,7 @@ export default function Generation() {
{module === "reading" && <ReadingGeneration />}
{module === "listening" && <ListeningGeneration />}
{module === "writing" && <WritingGeneration />}
{module === "level" && <LevelGeneration />}
</Layout>
)}
</>