init commit

This commit is contained in:
2025-07-24 02:21:21 +02:00
commit afd46715c2
23 changed files with 1337 additions and 0 deletions

21
src/App.tsx Normal file
View File

@@ -0,0 +1,21 @@
import "./App.css";
import Timetable from "./components/Timetable/Timetable";
import { useDispatch } from "react-redux";
import { fetchTimetable } from "./store/index";
import { useEffect } from "react";
import { type AppDispatch } from "./store/index";
function App() {
const dispatch = useDispatch<AppDispatch>();
// Fetch the timetable data when the app loads
useEffect(() => {
dispatch(fetchTimetable());
}, [dispatch]);
return (
<>
<Timetable />
</>
);
}
export default App;