mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-23 08:48:37 +02:00
tasks
This commit is contained in:
18
web/components/routes/task/TaskList.tsx
Normal file
18
web/components/routes/task/TaskList.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from "react"
|
||||
import { Task } from "@/lib/schema/tasks"
|
||||
import { TaskItem } from "./TaskItem"
|
||||
|
||||
interface TaskListProps {
|
||||
tasks: Task[]
|
||||
onUpdateTask: (taskId: string, updates: Partial<Task>) => void
|
||||
}
|
||||
|
||||
export const TaskList: React.FC<TaskListProps> = ({ tasks, onUpdateTask }) => {
|
||||
return (
|
||||
<ul className="space-y-2">
|
||||
{tasks.map(task => (
|
||||
<TaskItem key={task.id} task={task} onUpdateTask={onUpdateTask} />
|
||||
))}
|
||||
</ul>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user