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 { fetchDocument } from '../../lib/api/apiClient';
|
||||||
import useFolderTree from '../features/folders/useFolderTree';
|
import useFolderTree from '../features/folders/useFolderTree';
|
||||||
import useFolderTreeActions from '../features/folders/useFolderTreeActions';
|
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 useDocumentUploads from '../features/upload/useDocumentUploads';
|
||||||
import useDocumentDragHandlers from '../features/upload/useDocumentDragHandlers';
|
import useDocumentDragHandlers from '../features/upload/useDocumentDragHandlers';
|
||||||
import useDocumentMutations from './useDocumentMutations';
|
import useDocumentMutations from './useDocumentMutations';
|
||||||
@@ -541,7 +541,7 @@ const useDocumentsWorkspace = ({
|
|||||||
handleBulkTagAddFromDetail,
|
handleBulkTagAddFromDetail,
|
||||||
handleBulkTagRemoveFromDetail,
|
handleBulkTagRemoveFromDetail,
|
||||||
handleBulkSelectionReanalyze,
|
handleBulkSelectionReanalyze,
|
||||||
} = useDocumentTagging({
|
} = useDocumentTagActions({
|
||||||
tags,
|
tags,
|
||||||
tagManager,
|
tagManager,
|
||||||
refreshTags,
|
refreshTags,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import type { Dispatch, MutableRefObject, SetStateAction } from 'react';
|
|||||||
import usePasskeys from '../../settings/usePasskeys';
|
import usePasskeys from '../../settings/usePasskeys';
|
||||||
import TagManager from '../../lib/assets/TagManager';
|
import TagManager from '../../lib/assets/TagManager';
|
||||||
import useCorrespondents from './useCorrespondents';
|
import useCorrespondents from './useCorrespondents';
|
||||||
import useDocumentCorrespondentActions from './useDocumentCorrespondentActions';
|
import useDocumentCorrespondentActions from '../features/correspondents/useDocumentCorrespondentActions';
|
||||||
import useTags from './useTags';
|
import useTags from './useTags';
|
||||||
import type { Identifier } from '../../types/identifiers';
|
import type { Identifier } from '../../types/identifiers';
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
import { useCallback, useMemo } from 'react';
|
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 {
|
interface CorrespondentOption {
|
||||||
id?: string;
|
id?: string;
|
||||||
+2
-2
@@ -38,7 +38,7 @@ interface BulkTagOperationResult {
|
|||||||
docsCount?: number;
|
docsCount?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
const useDocumentTagging = ({
|
const useDocumentTagActions = ({
|
||||||
tags,
|
tags,
|
||||||
tagManager,
|
tagManager,
|
||||||
refreshTags,
|
refreshTags,
|
||||||
@@ -283,4 +283,4 @@ const useDocumentTagging = ({
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export default useDocumentTagging;
|
export default useDocumentTagActions;
|
||||||
Reference in New Issue
Block a user