diff options
author | dan <dan.abramov@gmail.com> | 2024-10-29 23:02:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 23:02:48 +0000 |
commit | a22685c34542d43a71c3496df28e86207ec7fbed (patch) | |
tree | 8422153468c9e7707956dae05d68617e9bbdf0d0 /src/state/queries | |
parent | 0ae64a1e0a3c3c6436b5edd0539ba9022a474ae8 (diff) | |
download | voidsky-a22685c34542d43a71c3496df28e86207ec7fbed.tar.zst |
Sort imports (#6009)
* Mark import sort/order/style rules as error * npm run lint -- --fix
Diffstat (limited to 'src/state/queries')
-rw-r--r-- | src/state/queries/messages/conversation.ts | 2 | ||||
-rw-r--r-- | src/state/queries/notifications/unread.tsx | 2 | ||||
-rw-r--r-- | src/state/queries/post-thread.ts | 6 | ||||
-rw-r--r-- | src/state/queries/resolve-short-link.ts | 6 | ||||
-rw-r--r-- | src/state/queries/starter-packs.ts | 14 |
5 files changed, 15 insertions, 15 deletions
diff --git a/src/state/queries/messages/conversation.ts b/src/state/queries/messages/conversation.ts index 16ace3c5a..fa8a883d0 100644 --- a/src/state/queries/messages/conversation.ts +++ b/src/state/queries/messages/conversation.ts @@ -1,10 +1,10 @@ import {ChatBskyConvoDefs} from '@atproto/api' import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query' +import {STALE} from '#/state/queries' import {DM_SERVICE_HEADERS} from '#/state/queries/messages/const' import {useOnMarkAsRead} from '#/state/queries/messages/list-converations' import {useAgent} from '#/state/session' -import {STALE} from 'state/queries' import {RQKEY as LIST_CONVOS_KEY} from './list-converations' const RQKEY_ROOT = 'convo' diff --git a/src/state/queries/notifications/unread.tsx b/src/state/queries/notifications/unread.tsx index 7bb325ea9..2ade04246 100644 --- a/src/state/queries/notifications/unread.tsx +++ b/src/state/queries/notifications/unread.tsx @@ -8,9 +8,9 @@ import {useQueryClient} from '@tanstack/react-query' import EventEmitter from 'eventemitter3' import BroadcastChannel from '#/lib/broadcast' +import {resetBadgeCount} from '#/lib/notifications/notifications' import {logger} from '#/logger' import {useAgent, useSession} from '#/state/session' -import {resetBadgeCount} from 'lib/notifications/notifications' import {useModerationOpts} from '../../preferences/moderation-opts' import {truncateAndInvalidate} from '../util' import {RQKEY as RQKEY_NOTIFS} from './feed' diff --git a/src/state/queries/post-thread.ts b/src/state/queries/post-thread.ts index a569cb160..103a1d03b 100644 --- a/src/state/queries/post-thread.ts +++ b/src/state/queries/post-thread.ts @@ -11,13 +11,13 @@ import { import {QueryClient, useQuery, useQueryClient} from '@tanstack/react-query' import {moderatePost_wrapped as moderatePost} from '#/lib/moderatePost_wrapped' +import {findAllPostsInQueryData as findAllPostsInQuoteQueryData} from '#/state/queries/post-quotes' import {UsePreferencesQueryResponse} from '#/state/queries/preferences/types' -import {useAgent} from '#/state/session' -import {findAllPostsInQueryData as findAllPostsInQuoteQueryData} from 'state/queries/post-quotes' import { findAllPostsInQueryData as findAllPostsInSearchQueryData, findAllProfilesInQueryData as findAllProfilesInSearchQueryData, -} from 'state/queries/search-posts' +} from '#/state/queries/search-posts' +import {useAgent} from '#/state/session' import { findAllPostsInQueryData as findAllPostsInNotifsQueryData, findAllProfilesInQueryData as findAllProfilesInNotifsQueryData, diff --git a/src/state/queries/resolve-short-link.ts b/src/state/queries/resolve-short-link.ts index a10bc12c1..649d2db74 100644 --- a/src/state/queries/resolve-short-link.ts +++ b/src/state/queries/resolve-short-link.ts @@ -1,8 +1,8 @@ import {useQuery} from '@tanstack/react-query' -import {resolveShortLink} from 'lib/link-meta/resolve-short-link' -import {parseStarterPackUri} from 'lib/strings/starter-pack' -import {STALE} from 'state/queries/index' +import {resolveShortLink} from '#/lib/link-meta/resolve-short-link' +import {parseStarterPackUri} from '#/lib/strings/starter-pack' +import {STALE} from '#/state/queries/index' const ROOT_URI = 'https://go.bsky.app/' diff --git a/src/state/queries/starter-packs.ts b/src/state/queries/starter-packs.ts index a3795d792..4066f8f19 100644 --- a/src/state/queries/starter-packs.ts +++ b/src/state/queries/starter-packs.ts @@ -18,17 +18,17 @@ import { } from '@tanstack/react-query' import chunk from 'lodash.chunk' -import {until} from 'lib/async/until' -import {createStarterPackList} from 'lib/generate-starterpack' +import {until} from '#/lib/async/until' +import {createStarterPackList} from '#/lib/generate-starterpack' import { createStarterPackUri, httpStarterPackUriToAtUri, parseStarterPackUri, -} from 'lib/strings/starter-pack' -import {invalidateActorStarterPacksQuery} from 'state/queries/actor-starter-packs' -import {STALE} from 'state/queries/index' -import {invalidateListMembersQuery} from 'state/queries/list-members' -import {useAgent} from 'state/session' +} from '#/lib/strings/starter-pack' +import {invalidateActorStarterPacksQuery} from '#/state/queries/actor-starter-packs' +import {STALE} from '#/state/queries/index' +import {invalidateListMembersQuery} from '#/state/queries/list-members' +import {useAgent} from '#/state/session' const RQKEY_ROOT = 'starter-pack' const RQKEY = ({ |