add flatastic api

This commit is contained in:
2025-07-24 22:29:23 +02:00
parent afd46715c2
commit 5448285211
21 changed files with 290 additions and 83 deletions

View File

@@ -4,16 +4,20 @@ import { useDispatch } from "react-redux";
import { fetchTimetable } from "./store/index";
import { useEffect } from "react";
import { type AppDispatch } from "./store/index";
import Flatastic from "./components/Flatastic/Flatastic";
import fetchFlatasticChores from "./store/thunks/fetchFlatasticChores";
function App() {
const dispatch = useDispatch<AppDispatch>();
// Fetch the timetable data when the app loads
useEffect(() => {
dispatch(fetchTimetable());
dispatch(fetchFlatasticChores());
}, [dispatch]);
return (
<>
<Timetable />
<Flatastic />
</>
);
}