Skip to content

Commit cf364fd

Browse files
refactor: renamed useInfiniteTagsList to useTagsList
1 parent fdaa7da commit cf364fd

File tree

3 files changed

+3
-68
lines changed

3 files changed

+3
-68
lines changed

apps/meteor/client/components/Omnichannel/hooks/useInfiniteTagsList.ts renamed to apps/meteor/client/components/Omnichannel/hooks/useTagsList.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type TagListItem = {
1717

1818
const DEFAULT_QUERY_LIMIT = 25;
1919

20-
export const useInfiniteTagsList = (options: TagsListOptions) => {
20+
export const useTagsList = (options: TagsListOptions) => {
2121
const { viewAll, department, filter, limit } = options;
2222

2323
const getTags = useEndpoint('GET', '/v1/livechat/tags');

apps/meteor/client/hooks/useTagsList.ts

-65
This file was deleted.

apps/meteor/client/omnichannel/tags/AutoCompleteTagsMultiple.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { ComponentProps } from 'react';
44
import { memo, useMemo, useState } from 'react';
55
import { useTranslation } from 'react-i18next';
66

7-
import { useInfiniteTagsList } from '../../components/Omnichannel/hooks/useInfiniteTagsList';
7+
import { useTagsList } from '../../components/Omnichannel/hooks/useTagsList';
88

99
type AutoCompleteTagsMultipleProps = Omit<
1010
ComponentProps<typeof PaginatedMultiSelectFiltered>,
@@ -27,7 +27,7 @@ const AutoCompleteTagsMultiple = ({
2727

2828
const debouncedTagsFilter = useDebouncedValue(tagsFilter, 500);
2929

30-
const { data: tagsItems, fetchNextPage } = useInfiniteTagsList({
30+
const { data: tagsItems, fetchNextPage } = useTagsList({
3131
filter: debouncedTagsFilter,
3232
department,
3333
viewAll,

0 commit comments

Comments
 (0)