Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/components/Task.tsx
Original file line number Diff line number Diff line change
@@ -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;
};

Expand All @@ -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" }}
/>
</label>
{state !== "TASK_ARCHIVED" && (
Expand Down