test commit

This commit is contained in:
Kirill
2026-05-21 13:39:45 +05:00
parent a176955521
commit 058fa26e12
18 changed files with 563 additions and 45 deletions
+8 -2
View File
@@ -11,7 +11,8 @@ export type AuthUser = {
lastName?: string | null
gender?: string | null
avatar?: string | null
phone?: string | null
avatarType?: string | null
avatarStyle?: string | null
isAdmin?: boolean
}
@@ -68,7 +69,12 @@ export const verifyEmailChangeFx = createEffect(async (params: { newEmail: strin
// ----- Profile update -----
export type UpdateProfileParams = { displayName: string | null; phone?: string | null }
export type UpdateProfileParams = {
displayName: string | null
avatar?: string | null
avatarType?: string | null
avatarStyle?: string | null
}
export const updateProfileFx = createEffect(async (params: UpdateProfileParams) => {
const { data } = await apiClient.patch<{ user: AuthUser }>('me/profile', params)