From 423c9f1fc8b9a92bee095645b9a31ddd53d2c57b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 28 Oct 2024 23:49:17 +0100 Subject: [PATCH] pl-hooks: do not import from /main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-hooks/lib/hooks/accounts/use-directory.ts | 4 +++- packages/pl-hooks/lib/hooks/search/use-search.ts | 4 +++- packages/pl-hooks/lib/hooks/statuses/use-status.ts | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/pl-hooks/lib/hooks/accounts/use-directory.ts b/packages/pl-hooks/lib/hooks/accounts/use-directory.ts index d9363c251..e6b5e2321 100644 --- a/packages/pl-hooks/lib/hooks/accounts/use-directory.ts +++ b/packages/pl-hooks/lib/hooks/accounts/use-directory.ts @@ -1,6 +1,8 @@ import { useInfiniteQuery } from '@tanstack/react-query'; -import { importEntities, usePlHooksApiClient, usePlHooksQueryClient } from 'pl-hooks/main'; +import { usePlHooksApiClient } from 'pl-hooks/contexts/api-client'; +import { usePlHooksQueryClient } from 'pl-hooks/contexts/query-client'; +import { importEntities } from 'pl-hooks/importer'; const useDirectory = (order: 'active' | 'new', local: boolean = false) => { const { client } = usePlHooksApiClient(); diff --git a/packages/pl-hooks/lib/hooks/search/use-search.ts b/packages/pl-hooks/lib/hooks/search/use-search.ts index 1e2d19458..6a438a81f 100644 --- a/packages/pl-hooks/lib/hooks/search/use-search.ts +++ b/packages/pl-hooks/lib/hooks/search/use-search.ts @@ -1,6 +1,8 @@ import { useInfiniteQuery } from '@tanstack/react-query'; -import { importEntities, usePlHooksApiClient, usePlHooksQueryClient } from 'pl-hooks/main'; +import { usePlHooksApiClient } from 'pl-hooks/contexts/api-client'; +import { usePlHooksQueryClient } from 'pl-hooks/contexts/query-client'; +import { importEntities } from 'pl-hooks/importer'; import type { SearchParams, Tag } from 'pl-api'; import type { PaginationParams } from 'pl-api/dist/params/common'; diff --git a/packages/pl-hooks/lib/hooks/statuses/use-status.ts b/packages/pl-hooks/lib/hooks/statuses/use-status.ts index f123e2821..85d9ecc2c 100644 --- a/packages/pl-hooks/lib/hooks/statuses/use-status.ts +++ b/packages/pl-hooks/lib/hooks/statuses/use-status.ts @@ -2,8 +2,8 @@ import { useQueries, useQuery, UseQueryOptions, type UseQueryResult } from '@tan import { usePlHooksApiClient } from 'pl-hooks/contexts/api-client'; import { queryClient, usePlHooksQueryClient } from 'pl-hooks/contexts/query-client'; +import { usePoll } from 'pl-hooks/hooks/polls/use-poll'; import { importEntities } from 'pl-hooks/importer'; -import { usePoll } from 'pl-hooks/main'; import { type NormalizedAccount } from 'pl-hooks/normalizers/account'; import { type NormalizedStatus, normalizeStatus } from 'pl-hooks/normalizers/status';