feat: update document workspace and taxonomy data hooks.
This commit is contained in:
@@ -43,7 +43,7 @@ import useDocuments from './useDocuments';
|
||||
import { fetchDocument } from '../../lib/api/apiClient';
|
||||
import useFolderTree from '../features/folders/useFolderTree';
|
||||
import useFolderTreeActions from '../features/folders/useFolderTreeActions';
|
||||
import useDocumentTagging from '../features/tagging/useDocumentTagging';
|
||||
import useDocumentTagActions from '../features/tagging/useDocumentTagActions';
|
||||
import useDocumentUploads from '../features/upload/useDocumentUploads';
|
||||
import useDocumentDragHandlers from '../features/upload/useDocumentDragHandlers';
|
||||
import useDocumentMutations from './useDocumentMutations';
|
||||
@@ -541,7 +541,7 @@ const useDocumentsWorkspace = ({
|
||||
handleBulkTagAddFromDetail,
|
||||
handleBulkTagRemoveFromDetail,
|
||||
handleBulkSelectionReanalyze,
|
||||
} = useDocumentTagging({
|
||||
} = useDocumentTagActions({
|
||||
tags,
|
||||
tagManager,
|
||||
refreshTags,
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
||||
import usePasskeys from '../../settings/usePasskeys';
|
||||
import TagManager from '../../lib/assets/TagManager';
|
||||
import useCorrespondents from './useCorrespondents';
|
||||
import useDocumentCorrespondentActions from './useDocumentCorrespondentActions';
|
||||
import useDocumentCorrespondentActions from '../features/correspondents/useDocumentCorrespondentActions';
|
||||
import useTags from './useTags';
|
||||
import type { Identifier } from '../../types/identifiers';
|
||||
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
import { useCallback, useMemo } from 'react';
|
||||
import type { Identifier } from '../../types/identifiers';
|
||||
import type { Identifier } from '../../../types/identifiers';
|
||||
|
||||
|
||||
import { addDocumentCorrespondent, removeDocumentCorrespondent } from '../../lib/api/apiClient';
|
||||
import { addDocumentCorrespondent, removeDocumentCorrespondent } from '../../../lib/api/apiClient';
|
||||
|
||||
interface CorrespondentOption {
|
||||
id?: string;
|
||||
+2
-2
@@ -38,7 +38,7 @@ interface BulkTagOperationResult {
|
||||
docsCount?: number;
|
||||
}
|
||||
|
||||
const useDocumentTagging = ({
|
||||
const useDocumentTagActions = ({
|
||||
tags,
|
||||
tagManager,
|
||||
refreshTags,
|
||||
@@ -283,4 +283,4 @@ const useDocumentTagging = ({
|
||||
};
|
||||
};
|
||||
|
||||
export default useDocumentTagging;
|
||||
export default useDocumentTagActions;
|
||||
Reference in New Issue
Block a user