Download references/task-status/src/components/TaskRow.tsx from mirasim-ai/devbrowse-bench: direct link, hf CLI and curl.
- Browser
- Download file 887 Bytes
-
https://huggingface.co/datasets/mirasim-ai/devbrowse-bench/resolve/main/references/task-status/src/components/TaskRow.tsx
- Command line
-
hf download hf://datasets/mirasim-ai/devbrowse-bench/references/task-status/src/components/TaskRow.tsx
-
curl -L -o TaskRow.tsx https://huggingface.co/datasets/mirasim-ai/devbrowse-bench/resolve/main/references/task-status/src/components/TaskRow.tsx
887 Bytes
| import { Link } from "react-router-dom"; | |
| import type { Task } from "../types"; | |
| import { PriorityBadge } from "./PriorityBadge"; | |
| export function TaskRow({ | |
| task, | |
| onToggle, | |
| onEdit, | |
| onDelete, | |
| }: { | |
| task: Task; | |
| onToggle: () => void; | |
| onEdit: () => void; | |
| onDelete: () => void; | |
| }) { | |
| return ( | |
| <li className={task.status === "done" ? "task done" : "task"} data-task-id={task.id}> | |
| <input type="checkbox" checked={task.status === "done"} onChange={onToggle} aria-label={`Complete ${task.title}`} /> | |
| <Link className="title" to={`/tasks/${task.id}`}> | |
| {task.title} | |
| </Link> | |
| <PriorityBadge priority={task.priority} /> | |
| <button onClick={onEdit} aria-label={`Edit ${task.title}`}> | |
| Edit | |
| </button> | |
| <button className="danger" onClick={onDelete} aria-label={`Delete ${task.title}`}> | |
| Delete | |
| </button> | |
| </li> | |
| ); | |
| } | |