implemented adding and editing of tasks

This commit is contained in:
z1glr
2025-01-19 01:16:22 +00:00
parent e17c9db90c
commit 3c30d6c163
18 changed files with 470 additions and 54 deletions

View File

@@ -19,7 +19,7 @@ import {
Spinner,
Textarea,
} from "@heroui/react";
import { getTasks, Task } from "@/lib";
import { getTaskMap, Task } from "@/lib";
import { EventData } from "@/Zustand";
export interface EventSubmitData {
@@ -103,7 +103,7 @@ export default function EditEvent(props: {
// get the available tasks and initialize the state with them
useEffect(() => {
(async () => {
const tasks = await getTasks();
const tasks = await getTaskMap();
setTasksMap(tasks);