profile panel

This commit is contained in:
2023-05-15 11:53:03 +01:00
parent 663c2ea433
commit d5d299a5cf
5 changed files with 55 additions and 8 deletions

View File

@ -47,6 +47,7 @@ const UserItem = (metadata: MetadataCache) => {
interface TextareaProps {
autoFocus: boolean;
className: string;
placeholder?: string;
onChange(ev: React.ChangeEvent<HTMLTextAreaElement>): void;
value: string;
onFocus(): void;
@ -72,7 +73,7 @@ const Textarea = (props: TextareaProps) => {
dir="auto"
{...props}
loadingComponent={() => <span>Loading...</span>}
placeholder={formatMessage(messages.NotePlaceholder)}
placeholder={props.placeholder ?? formatMessage(messages.NotePlaceholder)}
textAreaComponent={TextareaAutosize}
trigger={{
":": {