diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/common/TaggUserRowCell.tsx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/components/common/TaggUserRowCell.tsx b/src/components/common/TaggUserRowCell.tsx index 446f5e87..446dedc9 100644 --- a/src/components/common/TaggUserRowCell.tsx +++ b/src/components/common/TaggUserRowCell.tsx @@ -1,7 +1,8 @@ import React from 'react'; -import {Image, StyleSheet, Text, TouchableOpacity, View} from 'react-native'; +import {StyleSheet, Text, TouchableOpacity, View} from 'react-native'; import {ProfilePreviewType} from '../../types'; -import {defaultUserProfile, normalize} from '../../utils'; +import {normalize} from '../../utils'; +import Avatar from './Avatar'; type TaggUserRowCellProps = { onPress: () => void; @@ -10,11 +11,7 @@ type TaggUserRowCellProps = { const TaggUserRowCell: React.FC<TaggUserRowCellProps> = ({onPress, user}) => { return ( <TouchableOpacity onPress={onPress} style={styles.container}> - <Image - defaultSource={defaultUserProfile()} - source={{uri: user.thumbnail_url}} - style={styles.image} - /> + <Avatar style={styles.image} uri={user.thumbnail_url} /> <View style={styles.textContent}> <Text style={styles.username}>{`@${user.username}`}</Text> <Text style={styles.name}> |