refactor: remove openDocumentPreview and onDocumentOpen props from document panel components and hooks.

This commit is contained in:
2025-12-02 14:59:23 +01:00
parent cf41148942
commit c0093edc09
3 changed files with 0 additions and 7 deletions
@@ -10,7 +10,6 @@ import type { DragEvent, ReactNode, RefObject } from 'react';
import type {
DocumentsListEntry,
FolderEventHandler,
DocumentEventHandler,
Document,
DocumentTag,
} from '../../types/documents';
@@ -68,7 +67,6 @@ export interface DocumentsViewProps {
onFolderDragStart?: (event: DragEvent<HTMLElement>, folderId: Identifier | 'root') => void;
onFolderDragEnd?: (event: DragEvent<HTMLElement>) => void;
onFolderRename?: (folderId: Identifier | 'root', nextName: string) => Promise<boolean> | boolean;
onDocumentOpen?: DocumentEventHandler;
onDocumentActivate?: (doc: Document, event?: unknown) => void;
onDocumentDragStart?: (event: DragEvent<HTMLElement>, document: Document) => void;
onDocumentDragEnd?: (event: DragEvent<HTMLElement>) => void;