pl-hooks: do not import from /main

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-28 23:49:17 +01:00
parent c75451efaf
commit 423c9f1fc8
3 changed files with 7 additions and 3 deletions

View file

@ -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();

View file

@ -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';

View file

@ -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';