Search for username in compose mode
This commit is contained in:
parent
6731cc6629
commit
cbae7f8ee9
36 changed files with 997 additions and 72 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue