diff --git a/src/components/Pages/profile/ProfileSettingsPage.tsx b/src/components/Pages/profile/ProfileSettingsPage.tsx index d9e8d200..a6b87051 100644 --- a/src/components/Pages/profile/ProfileSettingsPage.tsx +++ b/src/components/Pages/profile/ProfileSettingsPage.tsx @@ -63,26 +63,26 @@ export const ProfileSettingsPage = (props: PageProps) => { /> - -

{t('Address on Discourse')}

-
-
- -
- updateFormField('slug', event.currentTarget.value)} - value={form.slug} - class="nolabel" - /> -

- {t('Sorry, this address is already taken, please choose another one.')} -

-
-
-
+ {/*Не готов бекенд*/} + {/*

{t('Address on Discourse')}

*/} + {/*
*/} + {/*
*/} + {/* */} + {/*
*/} + {/* updateFormField('slug', event.currentTarget.value)}*/} + {/* value={form.slug}*/} + {/* class="nolabel"*/} + {/* />*/} + {/*

*/} + {/* {t('Sorry, this address is already taken, please choose another one.')}*/} + {/*

*/} + {/*
*/} + {/*
*/} + {/*
*/} {/*Нет реализации полей на бэке*/} {/*

{t('Introduce')}

*/} diff --git a/src/graphql/mutation/update-profile.ts b/src/graphql/mutation/update-profile.ts index a5f38461..ca6c12ea 100644 --- a/src/graphql/mutation/update-profile.ts +++ b/src/graphql/mutation/update-profile.ts @@ -7,10 +7,6 @@ export default gql` error author { name - slug - userpic - bio - links } } } diff --git a/src/utils/apiClient.ts b/src/utils/apiClient.ts index 8a6606f6..efaa648b 100644 --- a/src/utils/apiClient.ts +++ b/src/utils/apiClient.ts @@ -216,8 +216,8 @@ export const apiClient = { console.debug('getAuthor', response) return response.data.getAuthor }, - updateProfile: async (options: ProfileInput) => { - const response = await privateGraphQLClient.mutation(updateProfile, options).toPromise() + updateProfile: async (input: ProfileInput) => { + const response = await privateGraphQLClient.mutation(updateProfile, { profile: input }).toPromise() console.debug('updateProfile', response) }, getTopic: async ({ slug }: { slug: string }): Promise => {