stuff
This commit is contained in:
@@ -36,7 +36,6 @@ const DocumentsPanel = ({
|
||||
onFolderDragStart,
|
||||
onFolderDragEnd,
|
||||
draggedFolderId,
|
||||
onFolderDelete,
|
||||
onFolderRename,
|
||||
selectedFolderIds = [],
|
||||
onDocumentOpen,
|
||||
@@ -45,9 +44,8 @@ const DocumentsPanel = ({
|
||||
draggingDocumentIds = [],
|
||||
onDocumentDragStart,
|
||||
onDocumentDragEnd,
|
||||
onDocumentDelete,
|
||||
onDocumentRename,
|
||||
onRowSelection = null,
|
||||
onEntrySelection = null,
|
||||
onOpenDetailPanel = null,
|
||||
tagLookupById,
|
||||
activeCorrespondentIds = [],
|
||||
@@ -56,7 +54,6 @@ const DocumentsPanel = ({
|
||||
onFocusedRowChange,
|
||||
ensureAssetUrl = null,
|
||||
getDocumentAsset = () => null,
|
||||
getDownloadHref,
|
||||
onTagClick,
|
||||
onCorrespondentClick,
|
||||
isSearchLoading = false,
|
||||
@@ -253,8 +250,8 @@ const DocumentsPanel = ({
|
||||
|
||||
const rowKey = entry.type === EntryType.document ? `document:${entry.id}` : `folder:${entry.id}`;
|
||||
|
||||
if (rowKey && typeof onRowSelection === 'function') {
|
||||
onRowSelection(rowKey, event);
|
||||
if (rowKey && typeof onEntrySelection === 'function') {
|
||||
onEntrySelection(rowKey, event);
|
||||
}
|
||||
|
||||
if (entry.type === EntryType.document) {
|
||||
@@ -281,7 +278,7 @@ const DocumentsPanel = ({
|
||||
onFocusedRowChange?.(rowKey);
|
||||
}
|
||||
},
|
||||
[onRowSelection, onOpenDetailPanel, onFocusedRowChange, onFolderSelect],
|
||||
[onEntrySelection, onOpenDetailPanel, onFocusedRowChange, onFolderSelect],
|
||||
);
|
||||
|
||||
const handleDocumentClick = useCallback(
|
||||
@@ -472,6 +469,8 @@ const DocumentsPanel = ({
|
||||
onCorrespondentClick={onCorrespondentClick}
|
||||
activeCorrespondentIdSet={activeCorrespondentIdSet}
|
||||
onClearSelection={onClearSelection}
|
||||
onDocumentRename={onDocumentRename}
|
||||
onFolderRename={onFolderRename}
|
||||
/>
|
||||
) : !showTableRows ? null : (
|
||||
<DocumentsList
|
||||
@@ -483,7 +482,6 @@ const DocumentsPanel = ({
|
||||
draggedFolderId={draggedFolderId}
|
||||
ensureAssetUrl={ensureAssetUrl}
|
||||
getDocumentAsset={getDocumentAsset}
|
||||
getDownloadHref={getDownloadHref}
|
||||
onFolderClick={handleFolderClick}
|
||||
onFolderSelect={onFolderSelect}
|
||||
onFolderDragOver={onFolderDragOver}
|
||||
@@ -492,7 +490,6 @@ const DocumentsPanel = ({
|
||||
onFolderDragStart={onFolderDragStart}
|
||||
onFolderDragEnd={onFolderDragEnd}
|
||||
onFolderRename={onFolderRename}
|
||||
onFolderDelete={onFolderDelete}
|
||||
onDocumentClick={handleDocumentClick}
|
||||
onDocumentOpen={onDocumentOpen}
|
||||
onDocumentDragStart={handleDocumentDragStartLocal}
|
||||
@@ -501,7 +498,6 @@ const DocumentsPanel = ({
|
||||
onDocumentTagDragLeave={handleDocumentTagDragLeave}
|
||||
onDocumentTagDrop={handleDocumentTagDrop}
|
||||
onDocumentRename={onDocumentRename}
|
||||
onDocumentDelete={onDocumentDelete}
|
||||
tagLookupById={tagLookupById}
|
||||
onTagClick={onTagClick}
|
||||
onCorrespondentClick={onCorrespondentClick}
|
||||
|
||||
Reference in New Issue
Block a user