diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-27 10:47:35 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-04-27 10:47:35 -0400 |
commit | a9b20af3889812b3d44ed1dedb75e4442eb35e8b (patch) | |
tree | 9053cf431fba88a43dbc6928dff5e8d2f9d45afa /src/components | |
parent | a13dcb5110245bb554d79e779c4942e6f5aaf18a (diff) |
missed a couple
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/search/SearchResultCell.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/components/search/SearchResultCell.tsx b/src/components/search/SearchResultCell.tsx index 5a6ea110..16e62a53 100644 --- a/src/components/search/SearchResultCell.tsx +++ b/src/components/search/SearchResultCell.tsx @@ -22,10 +22,10 @@ import { } from '../../utils'; import { checkIfUserIsBlocked, - defaultUserProfile, fetchUserX, userXInStore, } from '../../utils/users'; +import {Avatar} from '../common'; interface SearchResults { profileData: ProfilePreviewType; @@ -129,11 +129,7 @@ const SearchResultsCell: React.FC<SearchResults> = ({ <TouchableOpacity onPress={addToRecentlyStoredAndNavigateToProfile} style={styles.cellContainer}> - <Image - defaultSource={defaultUserProfile()} - source={{uri: avatar}} - style={styles.imageContainer} - /> + <Avatar style={styles.imageContainer} uri={avatar} /> <View style={[styles.initialTextContainer, styles.multiText]}> <Text style={styles.initialTextStyle}>{`@${username}`}</Text> <Text style={styles.secondaryTextStyle}> |