Usernames: Fetch own username from /whoami not /profile

This commit is contained in:
Scott Nonnenberg 2021-12-15 12:02:55 -08:00 committed by GitHub
parent 70ae5bb613
commit a023fc1bb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 43 additions and 26 deletions

View file

@ -18,15 +18,16 @@ import { refMerger } from '../util/refMerger';
import { byteLength } from '../Bytes';
export type PropsType = {
countLength?: (value: string) => number;
countBytes?: (value: string) => number;
countLength?: (value: string) => number;
disabled?: boolean;
disableSpellcheck?: boolean;
expandable?: boolean;
hasClearButton?: boolean;
i18n: LocalizerType;
icon?: ReactNode;
maxLengthCount?: number;
maxByteCount?: number;
maxLengthCount?: number;
moduleClassName?: string;
onChange: (value: string) => unknown;
onEnter?: () => unknown;
@ -58,15 +59,16 @@ export const Input = forwardRef<
>(
(
{
countLength = grapheme.count,
countBytes = byteLength,
countLength = grapheme.count,
disabled,
disableSpellcheck,
expandable,
hasClearButton,
i18n,
icon,
maxLengthCount = 0,
maxByteCount = 0,
maxLengthCount = 0,
moduleClassName,
onChange,
onEnter,
@ -201,6 +203,7 @@ export const Input = forwardRef<
isLarge && getClassName('__input--large')
),
disabled: Boolean(disabled),
spellcheck: disableSpellcheck ? 'false' : 'true',
onChange: handleChange,
onKeyDown: handleKeyDown,
onPaste: handlePaste,