diff --git a/src/components/Pages/profile/ProfileSettingsPage.tsx b/src/components/Pages/profile/ProfileSettingsPage.tsx
index 0d0d2334..a4e9d8f3 100644
--- a/src/components/Pages/profile/ProfileSettingsPage.tsx
+++ b/src/components/Pages/profile/ProfileSettingsPage.tsx
@@ -70,35 +70,36 @@ export const ProfileSettingsPage = (props: PageProps) => {
onChange={(event) => updateFormField('name', event.currentTarget.value)}
value={form.name}
/>
-
+
- {/*Не готов бекенд*/}
- {/*
{t('Address on Discourse')}
*/}
- {/**/}
- {/*Нет реализации полей на бэке*/}
- {/*{t('Introduce')}
*/}
- {/**/}
- {/* */}
- {/* */}
- {/*
*/}
+ {t('Address on Discourse')}
+
+
+ {t('Introduce')}
+
+
+
+
{t('About myself')}
@@ -106,8 +107,8 @@ export const ProfileSettingsPage = (props: PageProps) => {
name="about"
id="about"
placeholder={t('About myself')}
- value={form.bio}
- onChange={(event) => updateFormField('bio', event.currentTarget.value)}
+ value={form.about}
+ onChange={(event) => updateFormField('about', event.currentTarget.value)}
/>
diff --git a/src/context/profile.tsx b/src/context/profile.tsx
index 04d3c43a..2794c5fe 100644
--- a/src/context/profile.tsx
+++ b/src/context/profile.tsx
@@ -22,6 +22,8 @@ const useProfileForm = () => {
const [form, setForm] = createStore({
name: '',
bio: '',
+ about: '',
+ slug: '',
userpic: '',
links: []
})
@@ -34,6 +36,7 @@ const useProfileForm = () => {
setForm({
name: currentAuthor()?.name,
bio: currentAuthor()?.bio,
+ about: currentAuthor()?.about,
userpic: currentAuthor()?.userpic,
links: currentAuthor()?.links
})
diff --git a/src/graphql/types.gen.ts b/src/graphql/types.gen.ts
index 332c9ae6..9c2cd9cf 100644
--- a/src/graphql/types.gen.ts
+++ b/src/graphql/types.gen.ts
@@ -23,6 +23,7 @@ export type AuthResult = {
export type Author = {
bio?: Maybe
+ about?: Maybe
caption?: Maybe
id: Scalars['Int']
lastSeen?: Maybe
@@ -327,6 +328,8 @@ export type Permission = {
export type ProfileInput = {
bio?: InputMaybe
+ slug?: InputMaybe
+ about?: InputMaybe
links?: InputMaybe>>
name?: InputMaybe
userpic?: InputMaybe