feat: refactor frontend tag interaction handlers
This commit is contained in:
@@ -48,11 +48,11 @@ interface DocumentsPanelProps extends DocumentsPanelInnerProps {
|
||||
selectionValue: WorkspaceSelectionValue;
|
||||
}
|
||||
|
||||
import type { TagDragHandlers } from '../interactions/useTagInteractions';
|
||||
import type { TagInteractionHandlers } from '../interactions/useTagInteractions';
|
||||
|
||||
export interface DocumentsViewProps {
|
||||
entries: DocumentsListEntry[];
|
||||
tagDragHandlers?: TagDragHandlers;
|
||||
tagHandlers?: TagInteractionHandlers;
|
||||
}
|
||||
|
||||
const DocumentsPanelInner: React.FC<DocumentsPanelInnerProps> = (props) => {
|
||||
@@ -88,7 +88,7 @@ const DocumentsPanelInner: React.FC<DocumentsPanelInnerProps> = (props) => {
|
||||
assetContextValue,
|
||||
viewStateContextValue,
|
||||
commandContextValue,
|
||||
tagDragHandlers,
|
||||
tagHandlers,
|
||||
scrollRef,
|
||||
hasDocumentEntries,
|
||||
} = useDocumentsContextValues(props);
|
||||
@@ -246,7 +246,7 @@ const DocumentsPanelInner: React.FC<DocumentsPanelInnerProps> = (props) => {
|
||||
const viewProps = {
|
||||
entries,
|
||||
viewId: currentFolderId,
|
||||
tagDragHandlers,
|
||||
tagHandlers,
|
||||
};
|
||||
|
||||
const [iconSizes] = useState({
|
||||
|
||||
Reference in New Issue
Block a user