diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-05-06 22:50:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-06 22:50:28 +0300 |
commit | 4c8fd006f6a994783a43e4744a3167db7aefc159 (patch) | |
tree | 0b8350774438cbbc2b8c6e77b844ce6b677381d3 /src/state/queries | |
parent | 3f7dc9a8e5c9225ef20ce996543a1c3cfa991eb7 (diff) | |
download | voidsky-4c8fd006f6a994783a43e4744a3167db7aefc159.tar.zst |
New Edit Profile dialog on web, use new Edit Image dialog everywhere (#8220)
Diffstat (limited to 'src/state/queries')
-rw-r--r-- | src/state/queries/list.ts | 8 | ||||
-rw-r--r-- | src/state/queries/profile.ts | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/state/queries/list.ts b/src/state/queries/list.ts index 38e8cd62d..c0d5edfb1 100644 --- a/src/state/queries/list.ts +++ b/src/state/queries/list.ts @@ -14,9 +14,9 @@ import chunk from 'lodash.chunk' import {uploadBlob} from '#/lib/api' import {until} from '#/lib/async/until' -import {type PickerImage} from '#/lib/media/picker.shared' +import {type ImageMeta} from '#/state/gallery' import {STALE} from '#/state/queries' -import {useAgent, useSession} from '../session' +import {useAgent, useSession} from '#/state/session' import {invalidate as invalidateMyLists} from './my-lists' import {RQKEY as PROFILE_LISTS_RQKEY} from './profile-lists' @@ -47,7 +47,7 @@ export interface ListCreateMutateParams { name: string description: string descriptionFacets: Facet[] | undefined - avatar: PickerImage | null | undefined + avatar: ImageMeta | null | undefined } export function useListCreateMutation() { const {currentAccount} = useSession() @@ -115,7 +115,7 @@ export interface ListMetadataMutateParams { name: string description: string descriptionFacets: Facet[] | undefined - avatar: PickerImage | null | undefined + avatar: ImageMeta | null | undefined } export function useListMetadataMutation() { const {currentAccount} = useSession() diff --git a/src/state/queries/profile.ts b/src/state/queries/profile.ts index 9f40ab7f6..eb65fef7c 100644 --- a/src/state/queries/profile.ts +++ b/src/state/queries/profile.ts @@ -20,9 +20,10 @@ import { import {uploadBlob} from '#/lib/api' import {until} from '#/lib/async/until' import {useToggleMutationQueue} from '#/lib/hooks/useToggleMutationQueue' -import {type PickerImage} from '#/lib/media/picker.shared' import {logEvent, type LogEvents, toClout} from '#/lib/statsig/statsig' +import {updateProfileShadow} from '#/state/cache/profile-shadow' import {type Shadow} from '#/state/cache/types' +import {type ImageMeta} from '#/state/gallery' import {STALE} from '#/state/queries' import {resetProfilePostsQueries} from '#/state/queries/post-feed' import { @@ -30,10 +31,9 @@ import { useUnstableProfileViewCache, } from '#/state/queries/unstable-profile-cache' import {useUpdateProfileVerificationCache} from '#/state/queries/verification/useUpdateProfileVerificationCache' +import {useAgent, useSession} from '#/state/session' import * as userActionHistory from '#/state/userActionHistory' import type * as bsky from '#/types/bsky' -import {updateProfileShadow} from '../cache/profile-shadow' -import {useAgent, useSession} from '../session' import { ProgressGuideAction, useProgressGuideControls, @@ -131,8 +131,8 @@ interface ProfileUpdateParams { | (( existing: Un$Typed<AppBskyActorProfile.Record>, ) => Un$Typed<AppBskyActorProfile.Record>) - newUserAvatar?: PickerImage | undefined | null - newUserBanner?: PickerImage | undefined | null + newUserAvatar?: ImageMeta | undefined | null + newUserBanner?: ImageMeta | undefined | null checkCommitted?: (res: AppBskyActorGetProfile.Response) => boolean } export function useProfileUpdateMutation() { |