diff --git a/components/Timetable/Timetable.tsx b/components/Timetable/Timetable.tsx
index 357b8c5..116f8b3 100644
--- a/components/Timetable/Timetable.tsx
+++ b/components/Timetable/Timetable.tsx
@@ -9,6 +9,8 @@ import {
} from "@mantine/core";
import classes from "./Timetable.module.css";
import React from "react";
+import { time } from "console";
+import { NodeNextRequest } from "next/dist/server/base-http/node";
interface TimetableItem {
rgno: string;
@@ -770,105 +772,43 @@ export function Timetable() {
));
}
+ type ScheduleItem = [string, number, string];
+ const schedule: ScheduleItem[] = [
+ ["8:50", 1, "10:00"],
+ ["10:10", 2, "11:20"],
+ ["11:30", 3, "12:40"],
+ ["13:50", 4, "15:00"],
+ ["15:10", 5, "16:20"],
+ ["16:30", 6, "17:40"],
+ ["17:50", 7, "19:00"],
+ ];
+
+ const timetable: JSX.Element[] = schedule.map((item) => (
+ <>
+
+
+ {item[0]}
+
+
+ {item[1]}
+
+
+ {item[2]}
+
+
+ {timetableItems[item[1] - 1]}
+ >
+ ));
+
return (
-
- Timetable
-
-
-
-
+
+
{weekDayItems}
-
-
- 8:50
-
-
- 1
-
-
- 10:00
-
-
- {timetableItems[0]}
-
-
- 10:10
-
-
- 2
-
-
- 11:20
-
-
- {timetableItems[1]}
-
-
- 11:30
-
-
- 3
-
-
- 12:40
-
-
- {timetableItems[2]}
-
-
- Lunch
-
-
- {timetableItems[2]}
-
-
- 13:50
-
-
- 4
-
-
- 15:00
-
-
- {timetableItems[3]}
-
-
- 15:10
-
-
- 5
-
-
- 16:20
-
-
- {timetableItems[4]}
-
-
- 16:30
-
-
- 6
-
-
- 17:40
-
-
- {timetableItems[5]}
-
-
- 17:50
-
-
- 7
-
-
- 19:00
-
-
- {timetableItems[6]}
+ {timetable}
);