fix: move hooks before early return in BoardView, remove unused attachmentMode prop

Fixed React hooks rules violation where useState and useCallback were
called after a conditional return in BoardView. Removed unused
attachmentMode prop from AttachmentSection (can be re-added when file
dialog is wired up).
This commit is contained in:
Your Name
2026-02-15 19:30:58 +02:00
parent 083c351ab2
commit 1da5f9834b
3 changed files with 18 additions and 23 deletions

View File

@@ -6,7 +6,6 @@ import type { Attachment } from "@/types/board";
interface AttachmentSectionProps {
cardId: string;
attachments: Attachment[];
attachmentMode: "link" | "copy";
}
export function AttachmentSection({