diff --git a/src/components/Task.tsx b/src/components/Task.tsx index e5bf96f..b3d908d 100644 --- a/src/components/Task.tsx +++ b/src/components/Task.tsx @@ -1,8 +1,11 @@ import type { TaskData } from "../types"; type TaskProps = { + /** Composition of the task */ task: TaskData; + /** Event to change the task to archived */ onArchiveTask: (id: string) => void; + /** Event to change the task to pinned */ onPinTask: (id: string) => void; }; @@ -28,6 +31,7 @@ export default function Task({ task: { id, title, state }, onArchiveTask, onPinT name="title" id={`title-${id}`} placeholder="Input title" + style={{ backgroundColor: "red" }} /> {state !== "TASK_ARCHIVED" && (