From b3d45586712e3f1376a1488128ac55c884a6a653 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sat, 28 Feb 2026 02:13:44 +0100 Subject: [PATCH] Remove doc --- src/components/view/board/BoardView.tsx | 54 +++++++++++++++++++------ 1 file changed, 42 insertions(+), 12 deletions(-) diff --git a/src/components/view/board/BoardView.tsx b/src/components/view/board/BoardView.tsx index 8e6d95c..f4ecabf 100644 --- a/src/components/view/board/BoardView.tsx +++ b/src/components/view/board/BoardView.tsx @@ -3,9 +3,15 @@ import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { DragDropContext, Droppable, Draggable } from "@hello-pangea/dnd"; -import { PlusIcon } from "lucide-react"; +import { PlusIcon, Trash2 } from "lucide-react"; import BoardTask from "./Task"; import { TaskViewProps } from "../TaskView"; +import { + ContextMenu, + ContextMenuContent, + ContextMenuItem, + ContextMenuTrigger, +} from "@/components/ui/context-menu"; export default function BoardView({ tags, @@ -76,17 +82,41 @@ export default function BoardView({ index={index} > {(provided) => ( - - setTasks({ - ...tasks, - [t.id]: t, - }) - } - provided={provided} - task={task} - tags={tags} - /> + + +
+ + setTasks({ + ...tasks, + [t.id]: t, + }) + } + provided={provided} + task={task} + tags={tags} + /> +
+
+ + + { + const updated = { ...tasks }; + delete updated[task.id]; + setTasks(updated); + }} + > + + Delete + + +
)} ))}