Search for username in compose mode

This commit is contained in:
Scott Nonnenberg 2021-11-11 17:17:29 -08:00 committed by GitHub
parent 6731cc6629
commit cbae7f8ee9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 997 additions and 72 deletions

View file

@ -65,6 +65,7 @@ export type Props = {
theme?: ThemeType;
title: string;
unblurredAvatarPath?: string;
searchResult?: boolean;
onClick?: (event: MouseEvent<HTMLButtonElement>) => unknown;
@ -108,6 +109,7 @@ export const Avatar: FunctionComponent<Props> = ({
theme,
title,
unblurredAvatarPath,
searchResult,
blur = getDefaultBlur({
acceptedMessageRequest,
avatarPath,
@ -181,6 +183,15 @@ export const Avatar: FunctionComponent<Props> = ({
)}
</>
);
} else if (searchResult) {
contentsChildren = (
<div
className={classNames(
'module-Avatar__icon',
'module-Avatar__icon--search-result'
)}
/>
);
} else if (noteToSelf) {
contentsChildren = (
<div