-
Notifications
You must be signed in to change notification settings - Fork 361
fix: change usage of avatar component everywhere in the code #3349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,28 +10,28 @@ import { useTheme } from '../../contexts/themeContext/ThemeContext'; | |
| import { AtMentions } from '../../icons/AtMentions'; | ||
| import type { Emoji } from '../../types/types'; | ||
|
|
||
| import { Avatar } from '../Avatar/Avatar'; | ||
| import { UserAvatar } from '../ui/Avatar/UserAvatar'; | ||
|
|
||
| export type AutoCompleteSuggestionItemProps = { | ||
| itemProps: TextComposerSuggestion; | ||
| triggerType?: string; | ||
| }; | ||
|
|
||
| export const MentionSuggestionItem = (item: UserSuggestion) => { | ||
| const { id, image, name, online } = item; | ||
| const { id, name, online } = item; | ||
| const { | ||
| theme: { | ||
| colors: { accent_blue, black }, | ||
| messageInput: { | ||
| suggestions: { | ||
| mention: { avatarSize, column, container: mentionContainer, name: nameStyle }, | ||
| mention: { column, container: mentionContainer, name: nameStyle }, | ||
| }, | ||
| }, | ||
| }, | ||
| } = useTheme(); | ||
| return ( | ||
| <View style={[styles.container, mentionContainer]}> | ||
| <Avatar image={image} name={name} online={online} size={avatarSize} /> | ||
| <UserAvatar user={item} size='md' showOnlineIndicator={online} /> | ||
|
||
| <View style={[styles.column, column]}> | ||
| <Text style={[styles.name, { color: black }, nameStyle]} testID='mentions-item-name'> | ||
| {name || id} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.