diff options
author | Ivan Chen <ivan@tagg.id> | 2021-05-04 13:31:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 13:31:17 -0400 |
commit | 1441ef007549f24a292317f1e67c0de63cacbd2b (patch) | |
tree | 1b1fe4a21f257c468c321d49804f124c98a6e6b6 /src/screens/chat/ChatResultsCell.tsx | |
parent | 5a8d92bcd869ada1079bc36b6598c899a8a9246d (diff) | |
parent | 64dedc2bc0c65fae604ba771ae4c17d1927ff1c2 (diff) |
Merge pull request #392 from IvanIFChen/tma791-remove-profile-photo-requirement
[TMA-791] Removed profile photo requirement
Diffstat (limited to 'src/screens/chat/ChatResultsCell.tsx')
-rw-r--r-- | src/screens/chat/ChatResultsCell.tsx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/screens/chat/ChatResultsCell.tsx b/src/screens/chat/ChatResultsCell.tsx index e1eb97dd..14062810 100644 --- a/src/screens/chat/ChatResultsCell.tsx +++ b/src/screens/chat/ChatResultsCell.tsx @@ -1,13 +1,13 @@ import {useNavigation} from '@react-navigation/native'; import React, {useContext, useEffect, useState} from 'react'; -import {Alert, Image, StyleSheet, Text, View} from 'react-native'; +import {Alert, StyleSheet, Text, View} from 'react-native'; import {TouchableOpacity} from 'react-native-gesture-handler'; import {ChatContext} from '../../App'; +import {Avatar} from '../../components'; import {ERROR_FAILED_TO_CREATE_CHANNEL} from '../../constants/strings'; import {loadImageFromURL} from '../../services'; import {ProfilePreviewType, UserType} from '../../types'; import {createChannel, normalize, SCREEN_WIDTH} from '../../utils'; -import {defaultUserProfile} from '../../utils/users'; interface ChatResults { profileData: ProfilePreviewType; @@ -58,11 +58,7 @@ const ChatResultsCell: React.FC<ChatResults> = ({ <TouchableOpacity onPress={createChannelIfNotPresentAndNavigate} 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}> |