refactor: remove openDocumentPreview and onDocumentOpen props from document panel components and hooks.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user