About myself
This commit is contained in:
parent
bc4e82a8e6
commit
7d9f99f4b4
|
@ -117,19 +117,19 @@ export const ProfileSettingsPage = (props: PageProps) => {
|
|||
<label for="presentation">{t('Introduce')}</label>
|
||||
</div>
|
||||
|
||||
{/*Нет реализации полей на бэке*/}
|
||||
{/*<h4>{t('About myself')}</h4>*/}
|
||||
{/*<div class="pretty-form__item">*/}
|
||||
{/* <textarea*/}
|
||||
{/* name="about"*/}
|
||||
{/* id="about"*/}
|
||||
{/* placeholder={t('About myself')}*/}
|
||||
{/* value={form.about}*/}
|
||||
{/* onChange={(event) => updateFormField('about', event.currentTarget.value)}*/}
|
||||
{/* />*/}
|
||||
{/* <label for="about">{t('About myself')}</label>*/}
|
||||
{/*</div>*/}
|
||||
<h4>{t('About myself')}</h4>
|
||||
<div class="pretty-form__item">
|
||||
<textarea
|
||||
name="about"
|
||||
id="about"
|
||||
placeholder={t('About myself')}
|
||||
value={form.about}
|
||||
onChange={(event) => updateFormField('about', event.currentTarget.value)}
|
||||
/>
|
||||
<label for="about">{t('About myself')}</label>
|
||||
</div>
|
||||
|
||||
{/*Нет реализации полей на бэке*/}
|
||||
{/*<h4>{t('How can I help/skills')}</h4>*/}
|
||||
{/*<div class="pretty-form__item">*/}
|
||||
{/* <input type="text" name="skills" id="skills" />*/}
|
||||
|
|
|
@ -28,6 +28,7 @@ const useProfileForm = () => {
|
|||
const [form, setForm] = createStore<ProfileInput>({
|
||||
name: '',
|
||||
bio: '',
|
||||
about: '',
|
||||
slug: '',
|
||||
userpic: '',
|
||||
links: []
|
||||
|
@ -41,6 +42,7 @@ const useProfileForm = () => {
|
|||
name: currentAuthor()?.name,
|
||||
slug: currentAuthor()?.slug,
|
||||
bio: currentAuthor()?.bio,
|
||||
about: currentAuthor()?.about,
|
||||
userpic: currentAuthor()?.userpic,
|
||||
links: currentAuthor()?.links
|
||||
})
|
||||
|
|
|
@ -7,6 +7,7 @@ export default gql`
|
|||
slug
|
||||
name
|
||||
bio
|
||||
about
|
||||
userpic
|
||||
communities
|
||||
links
|
||||
|
|
|
@ -22,6 +22,7 @@ export type AuthResult = {
|
|||
}
|
||||
|
||||
export type Author = {
|
||||
about?: Maybe<Scalars['String']>
|
||||
bio?: Maybe<Scalars['String']>
|
||||
caption?: Maybe<Scalars['String']>
|
||||
id: Scalars['Int']
|
||||
|
@ -54,9 +55,9 @@ export type AuthorsBy = {
|
|||
}
|
||||
|
||||
export type Chat = {
|
||||
admins?: Maybe<Array<Maybe<Scalars['String']>>>
|
||||
admins?: Maybe<Array<Maybe<Scalars['Int']>>>
|
||||
createdAt: Scalars['Int']
|
||||
createdBy: Scalars['String']
|
||||
createdBy: Scalars['Int']
|
||||
description?: Maybe<Scalars['String']>
|
||||
id: Scalars['String']
|
||||
members?: Maybe<Array<Maybe<ChatMember>>>
|
||||
|
@ -65,7 +66,7 @@ export type Chat = {
|
|||
title?: Maybe<Scalars['String']>
|
||||
unread?: Maybe<Scalars['Int']>
|
||||
updatedAt: Scalars['Int']
|
||||
users?: Maybe<Array<Maybe<Scalars['String']>>>
|
||||
users?: Maybe<Array<Maybe<Scalars['Int']>>>
|
||||
}
|
||||
|
||||
export type ChatInput = {
|
||||
|
@ -78,6 +79,7 @@ export type ChatMember = {
|
|||
id: Scalars['Int']
|
||||
lastSeen?: Maybe<Scalars['DateTime']>
|
||||
name: Scalars['String']
|
||||
online?: Maybe<Scalars['Boolean']>
|
||||
slug: Scalars['String']
|
||||
userpic?: Maybe<Scalars['String']>
|
||||
}
|
||||
|
@ -139,12 +141,13 @@ export type LoadShoutsOptions = {
|
|||
}
|
||||
|
||||
export type Message = {
|
||||
author: Scalars['String']
|
||||
author: Scalars['Int']
|
||||
body: Scalars['String']
|
||||
chatId: Scalars['String']
|
||||
createdAt: Scalars['Int']
|
||||
id: Scalars['Int']
|
||||
replyTo?: Maybe<Scalars['String']>
|
||||
seen?: Maybe<Scalars['Boolean']>
|
||||
updatedAt?: Maybe<Scalars['Int']>
|
||||
}
|
||||
|
||||
|
@ -353,6 +356,7 @@ export type Query = {
|
|||
loadShout?: Maybe<Shout>
|
||||
loadShouts: Array<Maybe<Shout>>
|
||||
markdownBody: Scalars['String']
|
||||
searchMessages: Result
|
||||
searchRecipients: Result
|
||||
signIn: AuthResult
|
||||
signOut: AuthResult
|
||||
|
@ -417,6 +421,12 @@ export type QueryMarkdownBodyArgs = {
|
|||
body: Scalars['String']
|
||||
}
|
||||
|
||||
export type QuerySearchMessagesArgs = {
|
||||
by: MessagesBy
|
||||
limit?: InputMaybe<Scalars['Int']>
|
||||
offset?: InputMaybe<Scalars['Int']>
|
||||
}
|
||||
|
||||
export type QuerySearchRecipientsArgs = {
|
||||
limit?: InputMaybe<Scalars['Int']>
|
||||
offset?: InputMaybe<Scalars['Int']>
|
||||
|
@ -620,19 +630,12 @@ export type Stat = {
|
|||
}
|
||||
|
||||
export type Subscription = {
|
||||
newMessage: Message
|
||||
onlineUpdated: Array<User>
|
||||
reactionUpdated: ReactionUpdating
|
||||
shoutUpdated: Shout
|
||||
userUpdated: User
|
||||
collabUpdate?: Maybe<Reaction>
|
||||
newMessage?: Maybe<Message>
|
||||
}
|
||||
|
||||
export type SubscriptionNewMessageArgs = {
|
||||
chats?: InputMaybe<Array<Scalars['Int']>>
|
||||
}
|
||||
|
||||
export type SubscriptionReactionUpdatedArgs = {
|
||||
shout: Scalars['String']
|
||||
export type SubscriptionCollabUpdateArgs = {
|
||||
collab: Scalars['Int']
|
||||
}
|
||||
|
||||
export type Token = {
|
||||
|
@ -669,6 +672,7 @@ export type TopicStat = {
|
|||
}
|
||||
|
||||
export type User = {
|
||||
about?: Maybe<Scalars['String']>
|
||||
bio?: Maybe<Scalars['String']>
|
||||
communities?: Maybe<Array<Maybe<Scalars['Int']>>>
|
||||
createdAt: Scalars['DateTime']
|
||||
|
|
Loading…
Reference in New Issue
Block a user