-
+
+
);
+ }
+
+ default:
+ return null;
}
}
diff --git a/src/components/view/TaskView.tsx b/src/components/view/TaskView.tsx
index e3c334e..32f5320 100644
--- a/src/components/view/TaskView.tsx
+++ b/src/components/view/TaskView.tsx
@@ -1,15 +1,20 @@
"use client";
-import { SetState, Task } from "@/lib/types";
+import { Tag, TagId, Task, TaskId } from "@/lib/types";
import { Color } from "@/lib/ui/color";
import BoardView from "./board/BoardView";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../ui/tabs";
import { TableView } from "./table/TableView";
export type TaskViewProps = {
- tags: Record
;
- tasks: Task[];
- setTasks: SetState;
+ tags: Record;
+
+ tasks: Record;
+
+ /** Replace entire task array */
+ setTasks: (tasks: Task[]) => void;
+
+ /** Create a new task with a status */
createTask: (status: string) => void;
};
@@ -20,13 +25,14 @@ export default function TaskView({
createTask,
}: TaskViewProps) {
return (
-
-
-
+
+
+
Board
Table
-
+
+
-
+
+